Unknown: mysqli::real_escape_string(): Passing null to parameter #1 ($string) of type string is deprecated in /home/bihemtac/emare_storage/modification/system/library/db/mysqli.php on line 49Warning: Cannot modify header information - headers already sent by (output started at /home/bihemtac/emare.bihemta.com/system/framework.php:42) in /home/bihemtac/emare_storage/modification/catalog/controller/startup/session.php on line 25Unknown: Automatic conversion of false to array is deprecated in /home/bihemtac/emare_storage/modification/catalog/controller/startup/startup.php on line 132Warning: Cannot modify header information - headers already sent by (output started at /home/bihemtac/emare.bihemta.com/system/framework.php:42) in /home/bihemtac/emare_storage/modification/catalog/controller/startup/startup.php on line 136Warning: Cannot modify header information - headers already sent by (output started at /home/bihemtac/emare.bihemta.com/system/framework.php:42) in /home/bihemtac/emare_storage/modification/catalog/controller/startup/startup.php on line 210Unknown: Using the "Twig_Loader_Filesystem" class is deprecated since Twig version 2.7, use "Twig\Loader\FilesystemLoader" instead. in /home/bihemtac/emare_storage/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 7Unknown: realpath(): Passing null to parameter #1 ($path) of type string is deprecated in /home/bihemtac/emare_storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 40Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/bihemtac/emare_storage/modification/system/engine/action.php on line 65Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/bihemtac/emare_storage/modification/system/engine/action.php on line 65Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/bihemtac/emare_storage/modification/system/engine/action.php on line 65var prodlist = []; var catordttldisc = { 'applyrib': function() { $("[onclick*='cart.add']").each(function() { var product_id = $(this).attr('onclick').match(/[0-9]+/).toString(); var target = $(this).closest('.product-thumb'); var outproducts = prodlist['outproducts'] ? prodlist['outproducts'].split(',') : []; var products = prodlist['products'] ? prodlist['products'].split(',') : []; if (outproducts.includes(product_id)) { return; } if ((products.includes(product_id) || prodlist['allflag'] == 1) && target.find('div').hasClass('btn_catordttldiscrib') == false) { target.find('.price').prepend('
'+ "Fark " + '
'); } }); }, 'prodpage': function() { if ($("input[name='product_id']").length) { var product_id = $("input[name='product_id']").val().toString(); var target = $('#product'); var outproducts = prodlist['outproducts'] ? prodlist['outproducts'].split(',') : []; var products = prodlist['products'] ? prodlist['products'].split(',') : []; if (outproducts.includes(product_id)) { return; } if ((products.includes(product_id) || prodlist['allflag'] == 1) && target.find('div').hasClass('btn_catordttldiscrib') == false) { target.parent().find('ul li h2').prepend('
'+ "Fark " + '
'); } } }, 'initjson': function() { catordttldisc.applyrib(); catordttldisc.prodpage(); } } $(document).ready(function() { catordttldisc.initjson(); });