• Resolved sheikhabdullah321

    (@sheikhabdullah321)


    Hello,
    I hope Team is doing great. I want validation in the cart. for example, I have two products, the id of the first product is 10 and the second product is 12. when I add the product of 10 id in cart then I don’t want to add same product id 2 in short means I don’t want two product in both time.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello,
    I understand that you only want one product in the cart per order.

    This cannot be done by default, but it can be done via custom code. This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cart item validation’ is closed to new replies.