Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2751616
Product Bundles do not seem to work with Add-ons
Closed

Comments

  • Brian Sanders started the conversation

    We have this plugin installed: https://woocommerce.com/products/product-add-ons/

    We use the plugin to allow customers to add customer numbers or player names to some products, such as jackets or bags. Typically there is a fixed fee if the customer opts to add on a name or number, although sometimes the add-on is required and included in the price.

    We installed the premium version of Product Bundles and are trying to use it with some products that have add-ons. Unfortunately, the add-ons aren't showing for the included products (although attributes are.) We looked at this ticket (https://wpc.ticksy.com//ticket/2633865/), but the approach there doesn't work for us. We turned off auto-calculations and included a price, but the add-on fields still don't show for products in the bundle.

  • Brian Sanders replied

    Any response for this issue?

  • Brian Sanders replied

    Never got a response on this one...can someone there please resond?

  • Brian Sanders replied

    I think there was some confusion between two of my tickets and the response from this ticket (https://wpc.ticksy.com/ticket/2905047) is actually meant for this one, but it would be helpful if someone there could confirm. That ticket is about bundle prices not updating when the user choses a more expensive variation. This ticket is about product bundles not showing product add-on fields for bundled products. Here is the extension (https://woocommerce.com/products/product-add-ons/). This is actually a product from WooCommerce, so it would be helpful if it was supported. 

    Here's an example of a bundle on our site: https://team.macwear.com/shop/garden-city-football-2021/garden-city-football-spirit-wear-package/

    Here's one of the products from the bundle: https://team.macwear.com/shop/garden-city-football-2021/garden-city-football-heavyweight-cotton-hoody-in-retro-white-or-grey/?v=7516fd43adaa

    In order to access this product or bundle, you'll first need to enter a password: GCfootball2022

    This product, a sweatshirt, has add-on fields through which the customer can add a name or number to embroider on the sweatshirt for an additional fee. However, when this product is added to a bundle, the add-on fields don't show in the bundle, and we're forced to add separate add-on fields to the bundle itself, which causes a lot of confusion when we generate reports and embroidery lists for orders (which we do for the entire team, not just a single customer.)


  • Brian Sanders replied

    Per this ticket (https://wpc.ticksy.com/ticket/2905047/), I added the following code to the site, via the Snippets plugin:

    add_action( 'wp_footer', 'woosb_footer_wpao' );
    function woosb_footer_wpao() {    ?>    <script type="text/javascript">        jQuery(document).on('woosb_calc_price', function (e, total, total_formatted, total_html) {            if (jQuery('#product-addons-total').length) {                jQuery('#product-addons-total').data('price', total);                jQuery('#product-addons-total').closest('form.cart').trigger('woocommerce-product-addons-update');            }        });    </script>    <?php
    }

    Unfortunately, this code doesn't appear to do anything. From my reading of the code, it attempts to add the price of add-ons to the product bundle, but this can't work. On the product page, customers have to first enter values for the add-ons, and then if the add-on has an extra cost, that cost is added to the product. For this to work with bundles, the add-on fields have to display on the bundle page, so customers can enter values.

  • Brian Sanders replied

    Any update on this ticket? Thanks.