Warning: "continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"? in /home3/tountas1/public_html/marinallgr/vqmod/vqmod.php on line 684
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 24
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 25
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 26
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 27
Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 37
Warning: session_start(): Cannot start session when headers already sent in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home3/tountas1/public_html/marinallgr/vqmod/vqmod.php:684) in /home3/tountas1/public_html/marinallgr/catalog/controller/startup/startup.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /home3/tountas1/public_html/marinallgr/vqmod/vqmod.php:684) in /home3/tountas1/public_html/marinallgr/catalog/controller/startup/startup.php on line 131
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 24Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 25Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 26Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 27Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 37Warning: session_start(): Cannot start session when headers already sent in /home3/tountas1/public_html/marinallgr/system/library/session.php on line 38Warning: Cannot modify header information - headers already sent by (output started at /home3/tountas1/public_html/marinallgr/vqmod/vqmod.php:684) in /home3/tountas1/public_html/marinallgr/catalog/controller/product/livepriceupdate.php on line 171
var livepriceupdate = function() {
$.ajax({
type: 'POST',
url: 'index.php?route=product/livepriceupdate/index',
data: jQuery('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
dataType: 'json',
beforeSend: function() {
// you can add smth useful here
},
complete: function() {
// you can add smth useful here
},
success: function(json) {
if (json.success) {
if (jQuery('.product-info .price-tax').length > 0 && json.new_price.tax) {
animation_on_change_price_with_options('.product-info .price-tax', json.new_price.tax);
}
if (jQuery('.product-info .price-old').length > 0 && json.new_price.price) {
animation_on_change_price_with_options('.product-info .price-old', json.new_price.price);
}
if (jQuery('.product-info .price-new').length > 0 && json.new_price.special) {
animation_on_change_price_with_options('.product-info .price-new', json.new_price.special);
}
if (jQuery('.product-info #price_container').length > 0 && json.new_price.price) {
animation_on_change_price_with_options('.product-info #price_container', json.new_price.price);
}
}
},
error: function(error) {
//console.log(error);
}
});
}
var animation_on_change_price_with_options = function(selector_class_or_id, new_html_content) {
jQuery(selector_class_or_id).fadeOut(150, function() {
jQuery(this).html(new_html_content).fadeIn(50);
});
}
if ( jQuery.isFunction(jQuery.fn.on) )
{
jQuery('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\'], .product-info select, .product-info textarea, .product-info input[name=\'quantity\']').live('change', function() {
livepriceupdate();
});
}
else
{
jQuery('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\'], .product-info select, .product-info textarea, .product-info input[name=\'quantity\']').live('change', function() {
livepriceupdate();
});
}