PrestaShop / ganalytics

Gain clear insights into important metrics about your customers, using Google Analytics in PrestaShop 1.6.
10 stars 44 forks source link

error 500 when in product name there is | (pipe) #109

Open ang3lx opened 6 years ago

ang3lx commented 6 years ago

Hello I got 500 error when try to add or delete product from cart products that have | in name I've fixed with a str_replace

line 533 'name' => Tools::str2url(str_replace("|", "-", $product['name'])),

line 549 'name' => Tools::str2url(str_replace("|", "-", $product['name']))

line 798 $add_product['name'] = str_replace("|", "-", $add_product_object->name);

please fix new version :) last update 2015 on addons store thanks