Problems, need help? Have a tip or advice? Post it here.
13 posts Page 2 of 2
After some research an logical thinking I found a solution.

The price of the product is given in as the price per 1 gram.
With the code below I get the price per 100 gram back.

Code: Select all
<cms:set price="<cms:mul pp_price '100' /> " />
€ <cms:number_format price decimal_precision='2' /> / 100 gr.


Seems solid enough to me at the moment. 8-)
I'm glad, Sam :)
The price of the product is given in as the price per 1 gram
But, that was precisely my first suggestion (i.e. define price per gram). Perhaps I couldn't make myself understood properly there?
I got the idea of using the price per 1 gram.

As for the frontend, you'll have to use JS to enforce only increments of 50 (50gms ,100gms, 150gms. etc.) are inputted.


But your solution with JS "scared" me. (For the moment I only now the basics, I can implement a script, but not write my own)

Thanks for the support!
I'm now going further in building my shop. 8-)
13 posts Page 2 of 2