WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to create bundled products with a yes or no rather that quantity array (1 post)

  1. taprootphoto
    Member
    Posted 11 months ago #

    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?

    Thanks,
    Matt

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

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 11 months ago by taprootphoto
  • This topic is not resolved
  • WordPress version: 3.8.1