Issue with label not updating correctly
-
Hi! There was an issue with the current version of your plugin. If you hover over the any variation after the first attribute group, the label show the data from the first active variation group.
The issue is caused by the code in woo-linked-variation-frontend.js
The following code can replace the function and make it work properly:
jQuery(document).ready(function () {
// linked variation label change on hover
$(“.linked-variations ul li”).hover(function(){
var thisDataVariant = $(this).data(‘variant’);
$(this).parents(‘.woo-linked-variation’).find(‘.linked-variation-label .variation-selection’).html(thisDataVariant);
$(“#tf_sticky_form_wrap”).addClass(“hoverstate”);
},
function(){
$(“#tf_sticky_form_wrap”).removeClass(“hoverstate”);
var activeVariation = $(this).parents(‘.woo-linked-variation’).find(‘.linked-variations .active-variation’).parent();
$(this).parents(‘.woo-linked-variation’).find(‘.linked-variation-label .variation-selection’).html(activeVariation.data(‘variant’));
});
});
- The topic ‘Issue with label not updating correctly’ is closed to new replies.