Hi @fpacheco1,
I am not sure what your actual requirement is, Can you please elaborate your situation
in detail.
Thanks
Hi
I have a plugin where the client uploads image file and they show up on the checkout page inside a . (ORANGE ARROW IN IMAGE: https://pasteboard.co/J8NcPv6.jpg)
I want that image to open with the easy fancybox plugin but as it is loaded after the easy fancybox plugin reads the elements it does not work.
I need to run this code somewhere on your script (after the checkout content is loaded) in order for the easy fancybox to work:
$(document).trigger(‘post-load’);
Many thanks
OK, well you can prefer the “update_checkout” function to make it work. Using this plugin we are updating checkout on page load and every time users change the quantity.
you can see this script on line-no 269 in “plugin’s main file”.
You can try adding your data here or can prefer adding scripts externally.
Hope this helps.
Thanks
Perfect
it worked
line 330 of woocommerce-one-page-checkout-and-layouts.php
jQuery.post( ‘<?php echo $admin_url; ?>’ + ‘admin-ajax.php’, data, function( response )
{
// alert(response);
jQuery(‘#order_review_table’).html();
jQuery(‘#order_review_table’).html(response);
jQuery(document).trigger(‘post-load’);
//(‘#order_review_table’).html(response);
});
Perfect, Glad that worked for you.