Shipping hook conditional logic based on category items in cart
-
I have an issue with calculated shipping I need to sort out. I’ve set up a site for a friend and part of his requirement is some bundled shipping. They have 3 shipping classes large, medium and small. What they want to do is if you order the large then the medium or small ship at a reduced rate where they are boxed with it. Same if a medium ships then a small can be included at a lower rate.
The shipping is all flat rate with 3 zones currently. Now to get reduced shipping on multiples I’ve done a handling fee then a per item fee that is set to the add cost of shipping the additional products in a category.
example:
small: 15 ($15 for first all others are free)medium: 30 + (10 * [qty] ) ($40 for first all additional are $10)
large: 34 + ( 25 * [qty] ) ($59 for first all additional are $25)
This works fine except the handling fee they want to wave specifically for the medium and small when added to the large in cart or a small is added to a medium in cart. What is the best way to conditionally remove just the handling fee on the smaller product categories if the larger one is already in the cart?
Trying to make it as simple as possible so if the fees change in their 3 zone they can easily set the classes and it just removes that handling fee on the smaller classes if the larger one is in cart.
- The topic ‘Shipping hook conditional logic based on category items in cart’ is closed to new replies.