Hide quantity selector from a virtual product variation
-
Hi WooCommerce!
Is there a way (with code snippet or plugin) to achieve the following logic. I’m building an online bookstore where all books are variable products with two variations: paper copy (physical product variation) and online access (virtual product variation). So thats what I’m trying to achieve:1. If the client has selected the print copy variation, he shall have the quantity selector.
2. If the client has selected the online access variation (is_virtual), he shall not have the quantity selector, shall not be able to add the is_virtual variation more than once in the cart and most importantly – he shall not be able to purchase the same product (is_virtual variation) again, since he has already done that.Is there a way to achieve this?
- The topic ‘Hide quantity selector from a virtual product variation’ is closed to new replies.