Comments Repaire du chef started the conversationNovember 28, 2022 at 5:59pmHello 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 repliedNovember 29, 2022 at 8:03amHello, Could you answer me please ? The bug it's very important... ThanksRepaire du chef repliedDecember 5, 2022 at 2:33pmHello, Could you answer me please ? The bug it's very important... Thanks 153Henry repliedDecember 7, 2022 at 1:34amI 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. Sign in to reply ...
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 ?
Hello,
Could you answer me please ?
The bug it's very important...
Thanks
Hello,
Could you answer me please ?
The bug it's very important...
Thanks
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.