X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update) (https://forum.x-cart.com/showthread.php?t=63437)

cflsystems 04-30-2012 08:41 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
Since QT just released that probably all non-standard XC mods will not function properly until patched by their developers. This is normal. I personally would suggest anyone using anything before 4.5.x not to upgrade or to upgrade if this will be new store. The patch will work only on XC files and if you have custom skin not using one of the default XC skins as base then the patch will not apply to it - you need to manually go over all files and update them. And of course all 3rd party mods and customizations....

cflsystems 04-30-2012 11:36 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
On a clean 4.5.0 install the upgrade runs without any issues. There is a problem with it though - after smarty is upgraded the ajax add to cart on product details pages doesn't work. It reloads the page. On product details page the ajax add to cart works. Please fix

qualiteam 05-01-2012 10:13 PM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
Quote:

Originally Posted by cflsystems
On a clean 4.5.0 install the upgrade runs without any issues. There is a problem with it though - after smarty is upgraded the ajax add to cart on product details pages doesn't work. It reloads the page. On product details page the ajax add to cart works. Please fix


I'm sorry, but it seems I failed to replicate this problem. Could you please let me know if there are any error records in X-Cart error logs?

cflsystems 05-02-2012 08:18 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
There are no errors. Perhaps I wasn't clear - the "buy now" button on products list pages works and adds to cart but instead of doing it in the background it reloads the page. The "add to cart" button on product details page works as it should - without reloading the page

qualiteam 05-03-2012 11:21 PM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
OK, I see. I tried the same steps in the featured products section list on the ideal comfort skin on the home page. I got product added without any page reload. Probably there is some admin backend option difference.

cflsystems 05-04-2012 08:19 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
There were no changes to XC, just as it is installed, applied the patch and the button stops working. Try any other skin and you will see it not working.

JFYI so you can fix that upgrade
1. Ideal Comfort - skin loads, button works
2. Books & Magazines - skin loads, button doesn't work
3. Light & Lucid - skin loads, button doesn't work
4. Artistic Tunes - skin doesn't load at all - error
Code:

PHP Fatal error:  Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/blacksea/xcart450smarty/skin/artistictunes_business/customer/bread_crumbs.tpl"  on line 5 "{if $location and not($main eq "catalog" and $current_category.category eq "")}" unknown function "not"' in /var/www/blacksea/xcart450smarty/include/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627
Stack trace:

5. Fashion Mozaic - skin loads, buttons doesn't work
6. Vivid Dreams - skin loads, button doesn't work

cflsystems 05-05-2012 02:11 PM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
Just my observation - seems like XC 4.5.0 gets slower with Smarty3 upgrade. I thought Smarty 3 is supposed to be faster and more efficient....

qualiteam 05-07-2012 02:33 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
Quote:

Originally Posted by cflsystems
Just my observation - seems like XC 4.5.0 gets slower with Smarty3 upgrade. I thought Smarty 3 is supposed to be faster and more efficient....


I've done several tests and sometimes Smarty3 works faster, but not always.
Obviously the speed is almost the same (since no specific Smarty3 features used).

I cannot perform a complete test at the moment as it requires a dedicated server.

qualiteam 05-07-2012 03:57 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
Quote:

4. Artistic Tunes - skin doesn't load at all - error

The issue has been fixed. I've updated the pack.

cflsystems 05-07-2012 08:17 AM

Re: X-Cart 4.4.x/4.5.x (Smarty2 -> Smarty3 update)
 
Quote:

Originally Posted by qualiteam
The issue has been fixed. I've updated the pack.


Only the skin not loading issue or the buy now button issue as well?


All times are GMT -8. The time now is 12:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.