Developer forum

Forum » Templates » How to use Price Units?

How to use Price Units?


Reply

Hi


 


we ugently need a sample template showing us how to use Price Units in an ecom product detail template and how to calculate a uniqie price based on what number the user types in:


 


Sample:


 


One product has the folowing price setup:


 


First 200 pcs cost DKK 500,-


Successive 100 pcs cost 330,-


 


I know how to do this calculation based on userfieLds in eCom using Javascript.


 


BUT how get the result into the correct ecom orderline total field and makit update back into the database - i dont know.


 


What i probably need is a sample template showing a similar thing naming alle the input fields correctly


/LaRS


Replies

 
Reply

Hi, Lars


 


If i understand your issue correctly, you need to render all the unit prices for a specific product. This is not possible at the moment, so I cant send you a sample of how to do it.



 


If you need to add multiple amounts of the product to get the right unitprice, you need to add a input field to your FORM in the template called "Quantity".


 


/TFC



 

You must be logged in to post in the forum