Developer forum

Forum » Ecommerce - Standard features » Impersonation - not able to set unit price to 0,00 in basket

Impersonation - not able to set unit price to 0,00 in basket

Niels Foldager
Reply

Hi Dynamicweb,

We have a solution where a seller who buys on behalf of a customer (using impersonation) must be able to change the prices in the basket to 0.00 DKK.

We are using: "CartCmd=UpdateOrderlines&UnitPriceOrderLineOL{ORDERLINEID}=0"

It works fine when the price is changed to a amount that is higher than 0. After the price has been changed to something else than 0, you can subsequently set the price to 0, as OrderLineType has now been changed to Fixed.

Why is it not possible to change the price to 0 the first time?

Best regards
Niels Foldager


Replies

 
Niels Foldager
Reply

Any comments on this issue?

Best regards
Niels Foldager

 
Nicolai Pedersen
Reply

There is a check in code - probably to avoid calculations on percentage calculations of vat and other funny stuff.

Try to set the unitprice to 0.000001 and see what happens.

Screenshot_2021-01-05_165524.JPG
 
Niels Foldager
Reply

Hi Nicolai,

Ok, thanks for your quick reply. I have already considered the proposed solution, but was hoping for a more permanent fix in Dynamicweb. smiley

Best regards
Niels Foldager

 

You must be logged in to post in the forum