Hi,
They told where to put the trigger for the callback. What are we going to add in the script?
Here is the quick view code.
//Quick View
$('body').on('click','.quick-view',function(){
var url = look_ajax_url;
var productId = $(this).attr('product-data');
var html = '<div class="look-page-loading">Loading....</div>';
$.ajax({
url: url,
type: 'POST',
data: {action : 'load_product',id : productId},
beforeSend:function(){
$('body').append(html);
},
success: function(data){
$('.look-page-loading').remove();
$('.product-quickview-content').html(data);
$('#product-thumb-slide').waitForImages({
finished: function () {
$("#product-thumb-slide").verticalCarousel({nSlots: 4, speed: 400});
},
waitForAll: true
});
$("#myModal").modal();
if( !look_product_image_zoom && look_enable_product_lightbox)
{
$("a.zoom").prettyPhoto({
hook: 'data-rel',
social_tools: false,
theme: 'pp_woocommerce',
horizontal_padding: 20,
opacity: 0.8,
deeplinking: false
});
$("a[data-rel^='prettyPhoto']").prettyPhoto({
hook: 'data-rel',
social_tools: false,
theme: 'pp_woocommerce',
horizontal_padding: 20,
opacity: 0.8,
deeplinking: false
});
}
if (typeof($( '.variations_form' ).wc_variation_form) === "function")
{
$( '.variations_form' ).wc_variation_form();
}
$( '.variations_form .variations select' ).change();
}
});
});
Thanks