Unknown: mysqli::real_escape_string(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sungap/public_html/loja/system/library/db/mysqli.php on line 53Warning: Cannot modify header information - headers already sent by (output started at /home/sungap/public_html/loja/system/framework.php:42) in /home/sungap/public_html/loja/catalog/controller/startup/session.php on line 25Unknown: Automatic conversion of false to array is deprecated in /home/sungap/storage/modification/catalog/controller/startup/startup.php on line 184Warning: Cannot modify header information - headers already sent by (output started at /home/sungap/public_html/loja/system/framework.php:42) in /home/sungap/storage/modification/catalog/controller/startup/startup.php on line 188Warning: Cannot modify header information - headers already sent by (output started at /home/sungap/public_html/loja/system/framework.php:42) in /home/sungap/storage/modification/catalog/controller/startup/startup.php on line 292Warning: Cannot modify header information - headers already sent by (output started at /home/sungap/public_html/loja/system/framework.php:42) in /home/sungap/public_html/loja/system/library/xtensions/xtensionsactivity.php on line 268Unknown: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/sungap/public_html/loja/catalog/controller/extension/module/xabandoned_carts.php on line 329Unknown: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in /home/sungap/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 40Warning: Cannot modify header information - headers already sent by (output started at /home/sungap/public_html/loja/system/framework.php:42) in /home/sungap/public_html/loja/catalog/controller/extension/module/parcelamento.php on line 106 var parcelamento_ajax_call = function() { $.ajax({ type: 'POST', url: 'index.php?route=extension/module/parcelamento&product_id=685403876', data: $('#product input[type=\'text\'], #product input[type=\'number\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'), dataType: 'json', beforeSend: function() { }, complete: function() { }, success: function(json) { if (json.success) { if ($('#parcelamento').length > 0 && json.parcelamento) { animation_on_change_options('#parcelamento', json.parcelamento); } } } }); } var animation_on_change_options = function(selector_class_or_id, new_html_content) { $(selector_class_or_id).fadeOut(150, function() { $(this).html(new_html_content).fadeIn(50); }); } if ($('#product input[name=\'quantity\']').val() > 1) { parcelamento_ajax_call(); } if ( jQuery.isFunction(jQuery.fn.on) ) { $(document).on('change', '#product input[type=\'radio\']:checked, #product input[type=\'checkbox\'], #product select', function () { parcelamento_ajax_call(); }); $(document).on('input', '#product input[type=\'number\'], #product input[name=\'quantity\']', function () { parcelamento_ajax_call(); }); } else { $('#product input[type=\'text\'], #product input[type=\'number\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\'], #product select, #product textarea, #product input[name=\'quantity\']').live('change touchend', function() { parcelamento_ajax_call(); }); } // Support spinner_quantity if($('.number-spinner button').length){ $(document).on('click', '.number-spinner button', function(){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); } // Support bt_claudine if($('.increase').length || $('.decrease').length){ $(document).on('click', '.increase', function(){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); $(document).on('click', '.decrease', function(){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); } // Support Pav Theme if($('.quantity-adder .add-action').length){ $(".quantity-adder .add-action").bind("mouseup touchend", function(e){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); } // Support so-jenzo if($('.product_quantity_up').length || $('.product_quantity_down').length){ $('.product_quantity_up,.product_quantity_down').click(function(){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); } // Support Vitalia if($('#q_up').length || $('#q_down').length){ $('#q_up,#q_down').click(function(){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); } // Support Journal2 if($('.qty .journal-stepper').length){ $(".qty .journal-stepper").bind("mouseup touchend", function(e){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); } // Support Journal3 if($('.stepper').length){ $(".stepper").bind("mouseup touchend", function(e){ setTimeout(function(){ parcelamento_ajax_call(); }, 100); }); }