Support » Plugin: Advanced Shipping Validation for WooCommerce » Restrict By category or family + quantity of products

  • Resolved Marcelo Mika

    (@marcelo-mika)


    The idea is the following,

    If I choose 2 man watches and 2 lady watches that all correspond to the category “watches” can create a restriction that is maximum 3 products per category or family of products.

    Could you add this functionality?

    Saludos

    • This topic was modified 6 months, 2 weeks ago by  Marcelo Mika.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    This is not something that is possible by default, the ‘category’ and ‘quantity’ conditions are matched separately from one another (quantity is based on the cart quantity).

    To allow something like this you’d want to create a custom condition, or if its a one time use you could also just go with a custom code snippet for the validation, e.g; https://shopplugins.com/setting-up-shipping-validation-rules-in-woocommerce/

    Hope that helps!
    Jeroen

    Marcelo Mika

    (@marcelo-mika)

    Thanks for the reply.

    Find the solution, and get what you need without plugins.

    The code counts the amount of products entered into the shopping cart within a same category and based on that count, and based on this the logic for the alerts is applied.

    All alerts are implemented without using any plugins.

    Anyway your plugin is very good!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict By category or family + quantity of products’ is closed to new replies.