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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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

modifier for shipping per item / separate items based on the product group


Go to End


1631 Views

Avatar
phuell

Community Member, 3 Posts

15 December 2009 at 11:30pm

I am trying to build an order modifier that has mainly fixed shipping costs (like the simpleshippingmodifier) but some Products of specific Groups have fixed shipping cost per item.

lets say I have five product groups with some subgroups and products in them. the groups one to four have fixed shipping costs no matter how much items you order. Group five has shipping on a per-item basis. If you order three items you got three times the shipping costs for a single item of this group.

The problem is:
How can I check each item of the order if it is in group five, and if, calculate the shipping for this items?
How can I separate the Items of an Order based on the ProductGroup they are in?

Any ideas?

thanks in advance,
phil