Developer forum

Forum » Development » Get standard price when adding with points

Get standard price when adding with points

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have a shop (based on Rapido) that uses points to purchase. When adding an item to the cart, we use the cart command addWithPoints. That works fine but also sets the price of the item to zero in the cart. How do I find out what the standard price is? I could get it from the product using the ProductService directly, but is there a better way?

Thanks!

Imar


Replies

   
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Will do, thanks. So is my analysis correct that the price becomes zero because of addWithPoints?

Imar

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes. The orderline is paid with price as the alternative tender - so it should be left out of the order total.

 

You must be logged in to post in the forum