Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_3c57f0cd536f687119a8b9bede300134.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_41291fff160548ce320fc8ea433c201b.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_4158219670753ed9f7ead1a210614fdc.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_52582521a99bd602506a92fa2ffae378.1714219303): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_56d71ca1fbb4f48d095f815177d5d6a1.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_c693f4e11d40dab66aa501c00d19edee.1714219303): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_cc03b58ac993ffe2828976d794942e86.1714219303): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_da6c8c4f3206779f5a68575e121dc1da.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_db19dc4bb3531efd0bb03c9ed01b3cd7.1714219303): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_dc3744063e45afd492330fafa97f985c.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_e16ba388bec5801e79d36e2f81d79027.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_e771b13a41dbbe974e2b7b96f26ba942.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_e8caec61d77f1e491beb9563d79d54bf.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_e965e0b8888c01575dd1bedbfe6e7d5f.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_ebed6a03c2ad41f0017a2487df7c1c66.1714219303): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_ec2144b0ed4562053d0b38de65023d88.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: unlink(/var/www/vhosts/ideahouse.tw/httpdocs/system/storage/cache/cache.category.categories_ec64287b2a892db4a973b72fa5bd021b.1714219302): No such file or directory in /var/www/vhosts/ideahouse.tw/httpdocs/system/library/cache/file.php on line 67Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ideahouse.tw/httpdocs/system/framework.php:44) in /var/www/vhosts/ideahouse.tw/httpdocs/catalog/controller/startup/session.php on line 25Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ideahouse.tw/httpdocs/system/framework.php:44) in /var/www/vhosts/ideahouse.tw/httpdocs/catalog/controller/startup/startup.php on line 127Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ideahouse.tw/httpdocs/system/framework.php:44) in /var/www/vhosts/ideahouse.tw/httpdocs/catalog/controller/startup/startup.php on line 178 var price_with_options_ajax_call = function() {
$.ajax({
type: 'POST',
url: 'index.php?route=extension/module/live_options&product_id=4653',
data: $('#content input[type=\'text\'], #content input[type=\'number\'], #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\']:checked, #content select, #content 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 ($('#content .price-tax-live').length > 0 && json.new_price.tax) {
animation_on_change_price_with_options('#content .price-tax-live', json.new_price.tax);
}
if ($('#content .price-new-live').length > 0 && json.new_price.special) {
animation_on_change_price_with_options('#content .price-new-live', json.new_price.special);
}
if ($('#content .price-old-live').length > 0 && json.new_price.price) {
animation_on_change_price_with_options('#content .price-old-live', json.new_price.price);
}
// points
if ($('#content .spend-points-live').length > 0 && json.new_price.points) {
animation_on_change_price_with_options('#content .spend-points-live', json.new_price.points);
}
// reward
if ($('#content .get-reward-live').length > 0 && json.new_price.reward) {
animation_on_change_price_with_options('#content .get-reward-live', json.new_price.reward);
}
}
},
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(150, function() {
$(this).html(new_html_content).fadeIn(50);
});
}
if ($('#content input[name=\'quantity\']').val() > 1)
{
price_with_options_ajax_call();
}
if ( jQuery.isFunction(jQuery.fn.on) )
{
$(document).on('click', '.quantity-up, .quantity-down, #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\'], #content select, #content textarea, #content input[name=\'quantity\']', function () {
price_with_options_ajax_call();
});
$(document).on('change', '#content input[type=\'text\'], #content input[type=\'number\'], #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\'], #content select, #content textarea, #content input[name=\'quantity\']', function () {
price_with_options_ajax_call();
});
$(document).on('input', '#content input[type=\'text\'], #content input[type=\'number\'], #content input[name=\'quantity\']', function () {
price_with_options_ajax_call();
});
}
else
{
$('#content input[type=\'text\'], #content input[type=\'number\'], #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\'], #content select, #content textarea, #content input[name=\'quantity\']').live('change', function() {
price_with_options_ajax_call();
});
}
// Support spinner_quantity
if( $('.number-spinner button').length ){
$(document).on('click', '.number-spinner button', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support bt_claudine
if( $('.increase').length || $('.decrease').length ){
$(document).on('click', '.increase', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
$(document).on('click', '.decrease', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support Pav theme
if( $('.quantity-adder .add-action').length ){
$(".quantity-adder .add-action").bind( "mouseup touchend", function(e){
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support vitalia
if( $('#q_up').length || $('#q_down').length ){
$('#q_up,#q_down').click(function(){
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}