| Server IP : 5.129.245.98 / Your IP : 216.73.216.246 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/rehub-theme/js/ |
Upload File : |
jQuery(document).ready(function($) {
'use strict';
//Quick view
$(document).on('click', '.quick_view_button', function(e){
e.preventDefault();
var productID = $(this).data('product_id');
var quickViewProduct = $(this).closest('quick_view_wrap').find('.quick_view_product');
var data = {
'action': 'product_quick_view',
'product_id': productID,
'nonce' : quickviewvars.quicknonce,
};
$.pgwModal({
url: rhscriptvars.ajax_url,
titleBar: false,
maxWidth: 800,
loadingContent : '<img src="'+quickviewvars.templateurl+'/images/loaded.gif">',
mainClassName : 'pgwModal quick_view_product',
ajaxOptions : {
data : data,
success : function(response) {
if (response) {
$.pgwModal({ pushContent: response });
//if ( quickviewvars.ajax_add_to_cart ) {
//ajax_add_to_cart();
//}
} else {
$.pgwModal({ pushContent: 'An error has occured' });
}
}
}
});
});
});