I am creating a cart where there is a list of 5 products that can be purchased under 1 product page (Grouped Product) but the quantity option for each of these products is only 1. Basically my client is selling 1 house plan and there is are 3 options available to purchase 1) to buy a Full Version PDF of the house plan, 2) to buy a Study Version of the house plan, or 3) to buy prints of the house plan. Or to buy all of the above. But the visitor would only buy 1 Full Version PDF or Study Version or 1 Set of Prints.
So it is more of “Yes or No” than “Quantity?” So I was looking at grouped.php and line 32 thinking this is what I would need to edit.
woocommerce_quantity_input( array( ‘input_name’ => ‘quantity[‘ . $product_id . ‘]’, ‘input_value’ => ‘0’ ) );
But that’s as far as I got. Is there a way to ad a checkbox or something that would allow the visitor to add which products in the group that they would like to purchase rather than selecting a quantity of 1 for the products they want to purchase?
- The topic ‘How to create bundled products with a yes or no rather that quantity array’ is closed to new replies.