Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

How To Calculate Weight x Price With Product?

Go to End

2 Posts   3097 Views


Community Member, 4 Posts

9 January 2009 at 4:17pm

With the same customer just found out that he do not like ecommerce out-of-the-box product pricing model which just show the price. With his halal meat products he need to have a way in which he input in the CMS how many pounds the meat is and cost per pound and then the system automaticaly calculate the total price of the meat. Also on the product page on the website show how many pounds the meat is and cost per pound and the final price of the meat.

I know that an individual may edit that type of stuff at ecommerce/code/Product.php but I dont know EXACTLY how. I am great at web / graphic design but my PHP skills is very minimal so please state things in a way in which I may understand. Can anyone please help?


Community Member, 54 Posts

13 January 2009 at 6:29pm

...again I haven't got shipping working but i think you need WeightShippingModifier which already exists