Developer forum

Forum » Ecommerce - Standard features » OrderLineType
Adrian Ursu
Reply

Hi Guys,

I have noticed 2 types of OrderLineTypes in the order history: 0-Product, 2-Fixed.

I cannot figure out what is the difference between them when adding to cart and how can I control it.

The reason I need this is because the Reorder functionality in Customer Center does not invoke PriceProvider for orderlines that are different than 0,

Thank you,

Adrian


Replies

 
Nicolai Høeg Pedersen
Reply

If you have integration, and the price is calculated from ERP, the orderlinetype is set to 2, fixed price, meaning that Dynamicweb will not calculate the price.

 
Adrian Ursu
Reply

Got it.

I have noticed that the OrderLineType is set by default to 0 even though we are using a PriceProvider (not Integration Framework) and some of the OrderLinesType are converted to 2 whenever the order is edited in the back-end. I could not find a Pattern for the OrderLines that are converted.

Thanks,
Adrian

 
Nicolai Høeg Pedersen
Reply

It is not the priceprovider that sets the type to 2 - then it will not be called again... It has to be done explicitly somewhere to do this. The entire point of setting the type to 2 is that the priceprovider does not get called for that orderline.

If you edit the price on the orderline from the backend, of course the price provider gets disabled since the order has now been manipulated manually.

BR Nicolai

 

You must be logged in to post in the forum