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

Okay
  Public Ticket #3176986
new bug after code from your support (urgent)
Closed

Comments

  • Repaire du chef started the conversation

    Hello Henri, 

    Please I have a big issue due to your code : 

    / Wpclever team support ticket-3174243 // sync variation selected add_action('woocommerce_after_single_product', function(){     ?>     <script type="text/javascript">     (function($) {         $(document).on('found_variation', function(e, t) {             var $product = $(e['target']).closest('.woobt-product');             var pid = $(e['target']).closest('.variations_form').attr('data-product_id');             if ( ! $product.length && $(e['target']).hasClass('cart') && woobt_vars.add_to_cart_button !== 'main' ) {                 var main_product = $('.woobt-products .woobt-product.woobt-product-this');                 if (main_product.length && typeof main_product.attr('data-pid') != 'undefined' && parseInt(pid) == parseInt(main_product.attr('data-pid')) && typeof main_product.attr('data-id') != 'undefined') {                                          var attributes = Object.entries(t['attributes']);                     attributes.forEach(function(value){                         main_product.find('select[name="'+ value[0] +'"]').val(value[1]).trigger('change');                     });                     main_product.attr('data-id', t['variation_id']);                 }             }         });     })(jQuery);     </script>     <?php });

    I have a problem on the variations, the images do not change when we click on the variaitons, it is a problem coming from your plug in. 

    I let you look at it:  https://staging-lerepaireduchef.kinsta.cloud/trancheuse-berkel/ https://staging-lerepaireduchef.kinsta.cloud/trancheuse-berkel/?attribute_pa_couleurs=noir https://staging-lerepaireduchef.kinsta.cloud/trancheuse-berkel/?attribute_pa_couleurs=noir

    Can you please have a look ? 

  • Repaire du chef replied

    Hello, 

    Could you answer me please ? 

    The bug it's very important... 

    Thanks

  • Repaire du chef replied

    Hello, 

    Could you answer me please ? 

    The bug it's very important... 

    Thanks

  •  153
    Henry replied

    I would like to close this ticket, because the problem you mentioned in this ticket has appeared in another ticket of yours.

    Best regards,
    Henry N.