Hi Carsten,
The ‘Category’ condition itself is using a direct match for slugs of a product, so unfortunately it does not account for sub-categories out of the box.
There’s always the ability to extend the plugin with a customization/custom condition to match against parent- and sub-categories simultaneously..
Cheers,
Jeroen
Thread Starter
Carsten
(@carstenwh)
Hi,
what do you mean exactly? I added a category with free shipping for testing and it looks like all the lower categories are free now too. Or do I have a mistake?
Hi,
By default the ‘Category’ condition is a direct match to the selected category. If a product does not have the category selected directly it shouldn’t match the condition.
The ‘category’ condition also requires all products in the cart to have the given category before the condition matches. So if there are two or more products in the cart with different categories, the rate won’t show up.
Cheers,
Jeroen
Thread Starter
Carsten
(@carstenwh)
Hi Jeroen,
Thank you very much for your detailed feedback. Maybe my example will help you understand better:
Main Category: Garden
Subcategory: Fence
Subcategory: plug-in fence
Product: slat fence
Now I’ve selected Fence as a free category.
If I now put the product in the shopping cart, it will be displayed as free. Does it still work that way?
Best regards Carsten
Hi Carsten,
As long as the product has the fence category selected directly it should match. If it only has ‘Garden’ or ‘Plug-in fence’ selected it should not match (iirc).
Cheers,
Jeroen
Thread Starter
Carsten
(@carstenwh)
Thank you very much for your super fast answer. sorry my mistake My test product was not only in Subcategory: plug-in fence but also in Main Category: Garden
Is there perhaps a way to solve this differently? I have determined 40 other categories to create.
Thank you and best regards Carsten
Hi Carsten,
Its always possible to have a custom condition that matches exactly to your needs.
Feel free to reach out through my site if you need help with creating that.
Cheers,
Jeroen