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

Okay
  Public Ticket #3736379
The price doesn't change
Open

Comments

  •  2
    Ronald de Zeeuw started the conversation

    In the information for your plugin "WPC Composite Products for WooCommerce (Premium)" the following is mentioned: "Change the main product’s price based on the changes in prices of selected variations in a grouped product. This uses JavaScript to change the main product’s price, so it depends heavily on the theme’s HTML. If the price doesn't change when this option is enabled, please contact us and we can help you adjust the JS file."

    The issue is occurring with the Brooklyn theme I am using. However, when switching to a theme like "Twenty Twenty-Four," everything works as expected. Could you please provide a solution for this problem?

    Thank you in advance for your help.

  •  1,281
    Dustin replied

    Hi Ronald,

    Please send me this product link (with the Brooklyn theme) so I can check and give you the correct price selector. Then, you can fill it out on the settings page.

    Best regards,
    Dustin

  •  2
    Ronald de Zeeuw replied

    Hello Dustin,

    http://abc11779.sg-host.com/product/smalfilm-8mm-digitaliseren/  I use version 4.9.8.9 of the "Brooklyn Theme".

    Currently, I am experimenting with different plugins, so what is being displayed now is just experimental.

    Kind regards, Ronald


  •  1,281
    Dustin replied

    This theme changed the quantity input structure, so it doesn't work correctly with our plugin.

    Here is how it looks in our demo:

    2253910544.png

    But on your site, it's missing the CSS class "wooco_component_product_qty_input".

    8291676775.png

    To fix it, please add the custom code below. (How to add custom code? ↗):

    add_action( 'wp_footer', function () {
    	?>
        <script type="text/javascript">
          (function($) {
            $(document).on('wooco_init', function(e) {
              $('.wooco-qty .qty').addClass('wooco_component_product_qty_input');
            });
          })(jQuery);
        </script>
    	<?php
    }, 99 );

    Best regards,
    Dustin

  •  2
    Ronald de Zeeuw replied

    Hello Dustin,

    I have entered the code and conducted some tests that work well. Thank you for the quick response. 

    Kind regards, Ronald