Hello @theodotcom
The problem that comes to mind with this kind of feature is: Which Shipping Service takes precedence if both of those products are in the cart?
WooCommerce only allows us to select 1 Shipping Service, so designating specific Shipping Services per product seems troublesome out the gate. Shipping Classes seem best suited for geographic areas than product based shipping services.
I’m open to ideas or suggestions, but I’m not sure how this could work when the checkout/cart expects rates to be returned based on the total cart instead of being individually selected per product.
Some alternative ideas which are outside the realm of this plugin:
– An add_to_cart filter to prevent conflicting products to exist in the cart together at the same time returning an error message back to the user.
– Using the woocommerce_package_rates filter to force specific shipping rates. This plugin also has a iqlrss/shipping/calculator_object filter to extend the class and override Shipping Rates which can also be used to force a specific outcome.
Hi Alex, so the issue we have is some of our products contain batteries. These products have to be shipped via a ground service.
What we’d ideally want is if the products in the cart contains a product with a battery the only methods shown would be the ground options.
So ground options would always be the priority and always shown but based on the product in cart air options may also be shown. this is what we are trying to achieve?
any ideas?
thanks
Hello @theodotcom
Thanks for the clarification. Unfortunately, no immediate solution, but some of these Shipping Services do come with “flags”, things like hazardous material or fragile. We may be able to use these to flag certain products to align with certain Shipping Services that modify which rates get returned for an overall cart.
We’ll look into this a bit further with that in mind and we’ll keep you posted on what we find out.