• Resolved lunte

    (@lunte)


    Hello. On my website, I forbade buying products from category “A” along with products from category “B”. For this I use the woocommerce_add_to_cart_validation filter. It works well. However, when my user opens the archive page of these two categories in different browser tabs, he is able to buy these items together. I noticed that this is due to a variable product, the options of which are displayed on the storefront using your plugin. The user in the first tab first adds a simple item from category “A” to the cart. Then he goes to the next tab with category “B” and gets a unique opportunity to add a variable product to the cart. Please tell me can you help me with this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor GS Plugins

    (@gsplugins)

    Hi lunte (@lunte)

    Thanks for the concern.

    Can you please share your site link privately here?

    Mention this topic link.

    We will check & fix your issues after checking.

    Sarwar

    Thread Starter lunte

    (@lunte)

    Hello. Some time ago I sent you the links. But I don’t think I got a response. Tell me please, is there any news?

    • This reply was modified 2 years, 5 months ago by lunte.
    Plugin Contributor GS Plugins

    (@gsplugins)

    Hi Vlad,

    Sorry for the late response.

    Non-Variable & Variable, both products are added perfectly to the cart on our demo site.

    ** I found notifications on your site like – You cannot add items from this category while your cart contains: SHASHLIK
    Did you add any restrictions or from where it’s coming?

    Please check & let us know.

    ** Closing this ticket as we are talking at our support channel.

    Sarwar

    Thread Starter lunte

    (@lunte)

    Hello. Now forgive me for the late reply) Yes, I set these restrictions. I forbade buying meat along with sushi. And vice versa too. My code works as it should. But if I use your plugin on the storefront, then the customer bypasses my code and orders meat and sushi together. I really don’t want this. As a reminder, I’m using the woocommerce_add_to_cart_validation hook. Should I share the full code with you here?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin ignores woocommerce_add_to_cart_validation’ is closed to new replies.