Developer forum

Forum » Ecommerce - Standard features » Product Unit
Adrian Ursu
Reply

Hello Guys,

I am trying to figure out how to use the Unit functionality.

This time I have read the manual first :)

I have defined the units according to the manual and I have set up a default unit for a couple of products. I only have one language defined therefore localization should not be an issue.

I have added the product to cart but it looks like there is no value in table EcomOrderLines for column OrderLineUnitID.

I don't have multiple stock locations but in any case I have added also a new Stock line for one of the products. Got the same result.

What should I do in order to have the UnitID saved in the Orderline (apart from storing it in an OrderLineField).

I am using 8.6.1.4.

Thanks,

Adrian


Replies

 
Viktor
Reply

Hi Adrian, 

sorry for that late answear. I've lokked into you problem and after some research fond that to have the UnitID saved in the Orderline you should use Ecom:Product.Form tags in product list or product details templates. see example in that case Default Unit ID of product will be used on creating orderline from it. Also i can sugget some workaround if you do not wand to use that form. You able to add unit id as request parameter in add to basket link for example:

<a href="/default.aspx?id=<!--@Ecom:Product:Page.ID-->&amp;productid=<!--@Ecom:Product.ID-->&amp;UnitID=<!--@Ecom:Product.DefaultUnitID-->&amp;cartcmd=add">Add to basket</a>

Best regards,
Viktor Letavin
DynamicWEB Software A/S, Russian team

 

You must be logged in to post in the forum