X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   Attention X-Cart 4 developers: upgrading your modules to Smarty 3 (https://forum.x-cart.com/showthread.php?t=71579)

qualiteam 03-09-2015 09:13 AM

Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
Hello friends,

This forum thread is for everyone creating modules and themes for X-Cart 4.

As we have already announced in the forum and on our website, the next X-Cart 4 version (4.7.0) will feature Smarty 3.

The release is planned on March, 31. So, we advise you not to postpone this till a later date and check and update your modules/themes.

To help you and make the process of upgrading your modules&themes smooth we have documented our recommendations for the transition to Smarty 3.

The X-Cart 4 dev team will monitor this thread. So, don't hesitate to ask questions here should you have any questions on adapting your modules and themes for the upcoming X-Cart 4.7 version.

Also, we are considering creating a script that will allow early X-Cart 4.7.x versions (will be deprecated later) to switch between Smarty 2 and Smarty 3 depending on whether the module/theme supports the new Smarty 3, or not. This has its own drawbacks (including the time needed to develop the script), so we will apprecite your feedback and thoughts on this matter. Do you need such a script? How could it work?

We look forward to your reply.

Thanks!

cherie 03-09-2015 04:27 PM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
No, don't add that complexity to 4.7. Hopefully you are going to create a 4.6.6->4.7.0 full upgrader (like 4.5 to 4.6) and it would include a step for checking Smarty syntax.

qualiteam 03-17-2015 11:21 AM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
Hi!

I would like to post an update on the topic.

1. We have decided to not develop the script switching between Smarty versions.

2. Instead, we have created a script that looks through template files and checks them against the new Smarty 3 syntax.

3. Also, we will put the Google-Doc article (that I mentioned before) to our website and extend it with instructions on using the syntax-checking script.

If you have any questions, feel free to ask in this forum thread.

Thanks!

NeilSheridan 03-17-2015 11:33 PM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
Thanks for your reply in my initial thread.

I've had a look at the document and did run the first tool with many errors. I stopped there as all of the errors were located in templates that I have never used (default).

It did get to the module xcart_mobile and again, many errors.

Were you expecting me to do something? to be honest I'm not really sure what I'm supposed to do ?

Thanks

qualiteam 03-20-2015 12:22 AM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
Hello!

As for the Mobile module:

We are working on a new Mobile module version and plan to release it with the release of X-Cart 4.7.

This module version will support Smarty 3. Also, we will supply upgrade patches.

qualiteam 03-23-2015 02:31 AM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
Quote:

Originally Posted by NeilSheridan
I've had a look at the document and did run the first tool with many errors. I stopped there as all of the errors were located in templates that I have never used (default).

Were you expecting me to do something? to be honest I'm not really sure what I'm supposed to do ?

Thanks


To sum up:
1. You don't need to change any "default" templates as these will be replaced with updated versions when installing upgrade packs.
2. The same goes for modules created by our company - upgrade packs will replace templates with new ones.
3. If you have custom modifications which trigger Smarty 3 validation errors, these are to be fixed manually. Or you can get a paid assistance from us.
4. If you have modules created by third-party developers, you are to contact the developers and ask if they update the modules to reflect the Smarty 3 changes.

cherie 03-23-2015 09:21 AM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
Quote:

Originally Posted by qualiteam
1. You don't need to change any "default" templates as these will be replaced with updated versions when installing upgrade packs.

Are you outright replacing built-in skin directories (wiping out changes store owners may have made) or are you patching these files?

cflsystems 03-23-2015 09:22 AM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
I was just about to ask the same question.

qualiteam 03-23-2015 10:31 PM

Re: Attention X-Cart 4 developers: upgrading your modules to Smarty 3
 
I apologize for being unclear.

Quote:

1. You don't need to change any "default" templates as these will be replaced with updated versions when installing upgrade packs.

It will apply patches.


All times are GMT -8. The time now is 09:34 PM.

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