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?
thanks in advance,