1
J'ai un problème de WooCommerce sur les produits variables. Je veux ajouter l'écouteur à l'événement "found_variation" des variations pour obtenir des informations sur la variation actuelle du produit.WooCommerce: comment ajouter un écouteur à "found_variation" Événement
J'ai essayé celui-ci, mais ne fonctionne pas:
jQuery.fn.wc_variation_form.bind( 'found_variation', function(event, variation) { console.log(variation); // logging to see the variation information $('#product-price').html(variation.price_html); // showing the variation price at custom html element } );
Toutes les idées?