- Support forum for the Custom Shipping Methods for WooCommerce.
- This topic has 1 reply, 1 voice, and was last updated 1 year, 2 months ago by Dhara.
- July 18, 2022 at 1:30 am #94750MiltonGuest
I’m trying to set a custom shipping rate based on an specific product category, and it should be applied only if any product of this category is the only product in the cart. If any other product is added to the cart, this custom shipping rate should not be applied.
This is what I’ve done so far:
I set the category ID in the Required product categories field, and it shows this Custom Shipping if I set the Require Type as:
At least one of the required products has to be in cart
All of the required products have to be in cart
But if I set the Require Type as any of the two below, and all the products in the cart belongs to this specific category, it doesn’t show up.
Only the required products have to be in cart
All and only the required products have to be in cart
The option I believe I should use is: Only the required products have to be in cart, but it’s not working as expected.
Any advice about how can I achieve this?
Thanks in advance for any help you can provide.July 18, 2022 at 10:51 am #94751DharaGuest
A very good day. 🙂
Yes, you are correct, the option ‘Only the required products have to be in cart’ should work in your case.
I have tested this option with the latest versions of plugins and for me it is working fine. The custom shipping option is showing up if all the products in the cart belongs to that specific category.
To help you with this we will need few more details about your site. We are emailing you shortly with our requirements. Kindly revert back there.
- You must be logged in to reply to this topic.