• Good day I’m trying to make an E-commerce site that enables step-by-step shopping (like those online shops that sell gaming PCs). I want to ask if it’s possible to add only one product per category per transaction without using radio buttons or <select> drop-down box and just stick with Woocommerce’s “Add to cart” buttons. Basically an example:

    Processor Category:
    Intel i7 ->Added to cart

    Intel i5
    AMD FX-octa ->Their add to cart buttons become disabled

    ————–OR————–

    Video Card Category:
    AMD R9 290X ->Added to cart

    NVIDIA TITAN ->When added to cart, removes the previously added item from the same category

    Please bear with me, I’m a bit of a newbie. Thanks in advance!

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The closest plugin to this is Composite Products. You can make a ‘kit’ then the customer selects the quantity of each of the components to add.

    It won’t limit the products in the cart to one per category though, that you would need to have custom coded.

    Thread Starter evollove043

    (@evollove043)

    The plugin is great and all, and with a little tweaking would suit my needs perfectly but I don’t think I can shell out $79 for this… 🙁

    Thread Starter evollove043

    (@evollove043)

    Alright, maybe a conditional statement that evaluates whether or not an item of the same product category exists on the cart would help. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to limit sales to one product per category’ is closed to new replies.