Developer forum

Forum » Templates » orderlinefields

orderlinefields

Regin Madsen
Reply
Hi

I have now tried for too many hours to setup orderlinefield loop and parse the values to the cart (v2). But with no luck.

On the producttemplate Im using the Product.OrderLineFields loop. I get the input fields, but when submitting the form (meaning adding the product to cart) the values are not visible on the "showcart" template.

Using dwtemplatetags I can see a value in the loop, but when moving dwtemplatetags inside the ordreOrderLineFields loop nothing is returned... :-(

The product.orderlinefields loop on the orderline loop outputs my fields, but again with no values.

What can I be doing wrong?

/Regin Madsen


Replies

 
Vladimir
Reply
Hi Regin!
In general, you are moving in the right direction.
The problem is that the default template for product / producttlist does not submit all values ​​- only sends a command to add a product with id = nnn.
You can fix the template - for example so:
<form method = "post" action = "default.aspx?id =<!--Ecom: Product: Page.ID-->&productid=<!--Ecom: Product.ID-->&cartcmd=add ">
          ...blablabla...
          <input type="submit" value="Add to basket" />
</ form>

Best regards,
Vladimir

 

You must be logged in to post in the forum