Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /home/scedilt1/public_html/system/library/session.php on line 31
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/scedilt1/public_html/system/library/session.php on line 39
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/scedilt1/public_html/system/library/session.php on line 41
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/scedilt1/public_html/system/library/session.php on line 43
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/scedilt1/public_html/system/library/session.php on line 45
Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home/scedilt1/public_html/system/library/session.php on line 57
Warning: session_start(): Cannot start session when headers already sent in /home/scedilt1/public_html/system/library/session.php on line 59
Warning: SessionHandler::create_sid(): Session is not active in /home/scedilt1/public_html/system/library/session/native.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /home/scedilt1/public_html/config.php:2) in /home/scedilt1/public_html/system/library/session.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/scedilt1/public_html/config.php:2) in /home/scedilt1/public_html/catalog/controller/startup/startup.php on line 191
Warning: Cannot modify header information - headers already sent by (output started at /home/scedilt1/public_html/config.php:2) in /home/scedilt1/public_html/catalog/controller/startup/startup.php on line 311
var price_with_options_ajax_call = function() {
$.ajax({
type: 'POST',
url: 'index.php?route=extension/demonero/live_options/index&product_id=824',
data: $('.product-info input[type=\'text\'], .product-info input[type=\'number\'], .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',
success: function(json) {
if (json.success) {
if ($('.product-info .live-price-tax').length > 0 && json.new_price.tax) {
animation_on_change_price_with_options('.product-info .live-price-tax', json.new_price.tax);
}
if ($('.product-info .live-price-new').length > 0 && json.new_price.special) {
animation_on_change_price_with_options('.product-info .live-price-new', json.new_price.special);
}
if ($('.product-info .live-price').length > 0 && json.new_price.price) {
animation_on_change_price_with_options('.product-info .live-price', json.new_price.price);
}
}
},
error: function(error) {
console.log('error: '+error);
}
});
}
var animation_on_change_price_with_options = function(selector_class_or_id, new_html_content) {
$(selector_class_or_id).fadeOut(250, function() {
$(this).html(new_html_content).fadeIn(150);
});
}
$(document).on('change', '.product-info input[type=\'text\'], .product-info input[type=\'number\'], .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\']', function () {
price_with_options_ajax_call();
});