x-cart

category page open up blank in xcart

故事扮演 提交于 2020-01-06 15:20:50
问题 I had updated my xcart site from 4.X.X version to 4.7.6 version. All works fine but the look and feel of my site changed completely. I was using 2-column skin in older version and I want exactly same look as that in old version, but after upgradation look of my site changes completely. What I had tried : To recover that I copy the same 2-column skin of older version in my new version, and it goes well. But now the problem is Iam not able to display categories. What I had tried : To recover

Removing manufacturer in xcart

爱⌒轻易说出口 提交于 2019-12-25 09:01:54
问题 I am using xcart 4.7. After removing a manufacturer, all products renamed as restored products and all details are corrupted. I tried to database integrity checking but no result. 回答1: Thank you, Sarath S Rajendran, for the bug localization. Fixed in X-Cart 4.7.8. Custom code hasn't to call func_delete_product() without params. Wrong calls func_delete_product(); func_delete_product(0); func_delete_product(''); func_delete_product(null); Correct calls func_delete_product(3123); func_delete

Smarty If URL Contains

狂风中的少年 提交于 2019-12-09 15:37:30
问题 Using Smarty Tags I'd like to determine if an URL contains a word, something like: {if $smarty.get.page contains "product.php"} ..... I know contains doesn't exist, but how could I easily go about writing something similar to achieve the above code? 回答1: You can use strpos to check if a string has another string inside of it. $pos = strpos($smarty.get.page, "product.php"); if($pos !== false) { // found, do something } Except you need to wrap it in {php} and {/php} . $smarty.get.page

Hiding PHP / MySQL error message

泄露秘密 提交于 2019-12-09 13:56:07
问题 I have a website based on X-Cart. It’s working fine. However, when I go to the address (manually accessing the link) www.mysite.com/"Xx<XaXaXXaXaX>xX I get this error message: INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '",) ' LIMIT 1' at line 1<br /><b><font color="darkred">SQL QUERY FAILURE:</font></b>SELECT xid FROM xcart_session_history WHERE ip = INET_ATON('165.193.42.141') AND

Smarty If URL Contains

可紊 提交于 2019-12-04 02:37:17
Using Smarty Tags I'd like to determine if an URL contains a word, something like: {if $smarty.get.page contains "product.php"} ..... I know contains doesn't exist, but how could I easily go about writing something similar to achieve the above code? You can use strpos to check if a string has another string inside of it. $pos = strpos($smarty.get.page, "product.php"); if($pos !== false) { // found, do something } Except you need to wrap it in {php} and {/php} . $smarty.get.page translates to $_GET['page'] , so you could replace it with the GET variable as well. All PHP conditionals and

Hiding PHP / MySQL error message

家住魔仙堡 提交于 2019-12-03 21:55:06
I have a website based on X-Cart . It’s working fine. However, when I go to the address (manually accessing the link) www.mysite.com/"Xx<XaXaXXaXaX>xX I get this error message: INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '",) ' LIMIT 1' at line 1<br /><b><font color="darkred">SQL QUERY FAILURE:</font></b>SELECT xid FROM xcart_session_history WHERE ip = INET_ATON('165.193.42.141') AND host = '"XxxXx';",) ' LIMIT 1 INVALID SQL: 1064 : You have an error in your SQL syntax; check the