We are building a connection between Dynamicweb and a mayor ERP software system.
I’ve used most information from the forum.
(http://engage.dynamicweb-cms.com/Show-Article-361.aspx?PID=2472&ArticleID=92)
1. In the backend I’ve created three unit types in (Ecom – Settings – Product units)
called:
- Stuk
- Krat
- 10 Pak
2. Next I’ve changed an existing product properties and activated\bound the units (Stuk and Krat) for this product and I’ve selected the default product unit (Stuk) for the product. After that in pricing I selected units as the way of pricing for this product.
3. Now I was able to set different prices for different units of a product. I did that.
4. In the product template I’ve created a loop to loop through the product units and their prices. Than I’ve created an “add to Cart” link for each product with the price associated with the product unit. Like this:
<!--@LoopStart(Units)-->
<div>
<!--@Ecom:VariantOption.Price.PriceFormatted-->
<a href="/Default.aspx?ID=<!--@Server:Request.id-->&VariantId=<!--@Ecom:VariantOption.ID-->&ProductID=<!--@Server:Request.productid-->&PID=<!--@Server:Request.pid-->&cartcmd=add"><!--@Ecom:VariantOption.Name--></a>
</div>
<!--@LoopEnd(Units)-->
Than I tried everything out and found some strange things to happen. The cart did partially reflect what I was hoping it would do. It did tell me the unit of the product which is what I expected but gave it the default price instead of the unit price. I’ve tried it multiple times with multiple units, but the result was the same.
I’m I doing anything wrong?
Another question why do you have to specify the prices with VAT while everywhere else it is without VAT as configured?
DW Version 19.0.1.7