Developer forum

Forum » Ecommerce - Standard features » UpdateOrderline with OrderlineFields

UpdateOrderline with OrderlineFields

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

Can I update an OrderlineField by using the CartCmd=Updateorderlines ?

I have a few properties I need to update, mostly because I cannot update the AltpriceUnit without impersonating.

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply

Good question.

A quick look at the code seems like you need to use CartCmd=setmulti that works like addmulti

Using Updateorderlines, seems to handle only these fields:

  • DiscountPercentageOrderLine{orderlinekey}
  • UnitPriceOrderLine{orderlinekey}
  • StockLocationOrderLine{orderlinekey}
  • QuantityOrderLine{orderlinekey}

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you very  much for this info.
This means that I can use CartCmd=setmulti for changing the UnitPrice even if I am not impersonating the customer?

Thank you,
Adrian

 
Nicolai Pedersen
Reply

Nope. When you use Updateorderlines, you can alter unitprice if logged in and can impersonate. Setmulti cannot change unit price.

 

You must be logged in to post in the forum