Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Using Zen Cart 1.5.1
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Basically what happens is that the single and double are entered in to the query, and thus causing errors. We need to figure a way to tell the script to add an escape to certain characters before adding them to the query.
It shouldn't be that difficult, but my skills are still limited, and am learning on the way :)
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
Same here.
I tried escaping the " and or '. No luck.
The only thing that does not produce an error, is the following format:
But try to tell a shop owner to look at the following and do your additions, deletions, edits and audits and etc.1& #39;-2& #34; x 1& #39;-2& #34;
How is that for head spin?5&# 39;-7& #34; x 3& #39;-11& #34;
1& #39;-2& #34; x 1& #39;-2& #34;
12& #39;-4& #34; x 6& #39;-6& #34;
1&# 39;-2& #34; x 1& #39;-2& #34;
2&# 39;-9& #34; x 5& #39;-3& #34;
.
.
.
I am trying to figure out a way also.
Thanks.
ps. Spaces between & and # are left out, so it displays here.
Last edited by Kevin205; 26 May 2013 at 05:25 PM.
Using Zen Cart 1.5.1
Here's a quick solution,
find in includes/modules/YUOR_TEMPLATE/dynamic_filter.php
replace with:PHP Code:$having .= ' FIND_IN_SET("' . $key . $value . '", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))';
more values can be added if neededPHP Code:$value = preg_replace('/"/','\\"',$value);
$value = preg_replace('/´/','\\´',$value);
$having .= ' FIND_IN_SET("' . $key . $value . '", GROUP_CONCAT(CONCAT(REPLACE(po.products_options_name, " ", ""), pov.products_options_values_name)))';
![]()
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.