Unknown: Creation of dynamic property Request::$request is deprecated in /home1/stumpsur/public_html/system/library/request.php on line 26Unknown: Creation of dynamic property Session\DB::$db is deprecated in /home1/stumpsur/public_html/system/library/session/db.php on line 15Unknown: Creation of dynamic property Proxy::$getTranslations is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: mysqli::real_escape_string(): Passing null to parameter #1 ($string) of type string is deprecated in /home1/stumpsur/public_html/system/library/db/mysqli.php on line 45Warning: Cannot modify header information - headers already sent by (output started at /home1/stumpsur/public_html/system/framework.php:42) in /home1/stumpsur/public_html/catalog/controller/startup/session.php on line 25Unknown: Creation of dynamic property Proxy::$getLanguage is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$getLanguages is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Automatic conversion of false to array is deprecated in /home1/stumpsur/public_html/catalog/controller/startup/startup.php on line 95Warning: Cannot modify header information - headers already sent by (output started at /home1/stumpsur/public_html/system/framework.php:42) in /home1/stumpsur/public_html/catalog/controller/startup/startup.php on line 99Unknown: Creation of dynamic property Cart\Customer::$config is deprecated in /home1/stumpsur/public_html/system/library/cart/customer.php on line 14Unknown: Creation of dynamic property Cart\Customer::$db is deprecated in /home1/stumpsur/public_html/system/library/cart/customer.php on line 15Unknown: Creation of dynamic property Cart\Customer::$request is deprecated in /home1/stumpsur/public_html/system/library/cart/customer.php on line 16Unknown: Creation of dynamic property Cart\Customer::$session is deprecated in /home1/stumpsur/public_html/system/library/cart/customer.php on line 17Unknown: Creation of dynamic property Proxy::$getCurrencyByCode is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$getCurrencies is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home1/stumpsur/public_html/system/engine/proxy.php on line 30Warning: Cannot modify header information - headers already sent by (output started at /home1/stumpsur/public_html/system/framework.php:42) in /home1/stumpsur/public_html/catalog/controller/startup/startup.php on line 157Unknown: Creation of dynamic property Cart\Currency::$db is deprecated in /home1/stumpsur/public_html/system/library/cart/currency.php on line 7Unknown: Creation of dynamic property Cart\Currency::$language is deprecated in /home1/stumpsur/public_html/system/library/cart/currency.php on line 8Unknown: Creation of dynamic property Cart\Tax::$config is deprecated in /home1/stumpsur/public_html/system/library/cart/tax.php on line 7Unknown: Creation of dynamic property Cart\Tax::$db is deprecated in /home1/stumpsur/public_html/system/library/cart/tax.php on line 8Unknown: Creation of dynamic property Cart\Weight::$db is deprecated in /home1/stumpsur/public_html/system/library/cart/weight.php on line 7Unknown: Creation of dynamic property Cart\Weight::$config is deprecated in /home1/stumpsur/public_html/system/library/cart/weight.php on line 8Unknown: Creation of dynamic property Cart\Length::$db is deprecated in /home1/stumpsur/public_html/system/library/cart/length.php on line 7Unknown: Creation of dynamic property Cart\Length::$config is deprecated in /home1/stumpsur/public_html/system/library/cart/length.php on line 8Unknown: Creation of dynamic property Cart\Cart::$config is deprecated in /home1/stumpsur/public_html/system/library/cart/cart.php on line 7Unknown: Creation of dynamic property Cart\Cart::$customer is deprecated in /home1/stumpsur/public_html/system/library/cart/cart.php on line 8Unknown: Creation of dynamic property Cart\Cart::$session is deprecated in /home1/stumpsur/public_html/system/library/cart/cart.php on line 9Unknown: Creation of dynamic property Cart\Cart::$db is deprecated in /home1/stumpsur/public_html/system/library/cart/cart.php on line 10Unknown: Creation of dynamic property Cart\Cart::$tax is deprecated in /home1/stumpsur/public_html/system/library/cart/cart.php on line 11Unknown: Creation of dynamic property Cart\Cart::$weight is deprecated in /home1/stumpsur/public_html/system/library/cart/cart.php on line 12 var price_with_options_ajax_call = function() {
$.ajax({
type: 'POST',
url: 'index.php?route=extension/basel/live_options/index&product_id=81',
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();
});