Posted on 23/11/2017 17:06:26
No log entries, since that is the whole point with the method, to see if it is getting triggered or not.
Well the problem is that suddenly DW started adding 1,1 instead of just "1" product to cart.
meaning it adds 0,1 to the quantity.
I found out why is that, and that is because upon adding order to cart, it calls url "http://test.localsite.no/Default.aspx?id=20&productid=SSE023J1&cartcmd=add&quantity=1&quantity=1". And funny part is that I am sure that I have only 1 name="quantity" tag inside whole DOM, and it still somehow calls quantity 2 times.
This causes DW to think that Quantity is 1,1 = meaning price should be also multiplied by 1,1.
This was not like that it it suddenly started happening, trying to find out why this can happen.
Same thing happens when in product list, I am using a url "http://test.localsite.no/Default.aspx?id=20&productid=SSE023J1&cartcmd=add&quantity=1" but the network inspector shows that it called "http://test.localsite.no/Default.aspx?id=20&productid=SSE023J1&cartcmd=add&quantity=1&quantity=1" instead.
In order to generate that link, I am using this tag right here: "product.GetString("Ecom:Product:SavedForLater.AddToBasketLink");",
In product list, I have a link "http://test.localsite.no/Default.aspx?productid=SSE023J1&cartcmd=add" adds 1,1 to cart on some products.