View Single Post
  #10  
Old 04-01-2015, 01:27 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Changing Versions for Custom Modules

Hi guys,

In case you have custom modules the flow is as follows:
1. Disable custom modules. It doesn't remove data from the database.
2. Upgrade X-Cart 5 and modules from marketplace.
3. Fix custom modules.
4. Enable custom modules back.

"Fix custom modules" - this depends on changes between the X-Cart versions that you are upgrading from/to AND on the module. For simple modules changing the value returned by getMajorVersion() method (in the module's Main.php file) will likely be enough.

Quote:
Originally Posted by zychen
The problem is that the module would be disabled first then there would be an error because X-Cart cannot rebuild the MySQL tables with the data in the additional fields.

There should be no error. Did you guess there, or have you tried this and faced the error?

----

As for upgrade problems. Don't forget that this is a major update, like from 4.0.x to 4.1.x. The changes in the code are huge, and some of them require modules to be updated to get in the line with the new classes/methods/functions/templates...
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 04-01-2015 at 01:29 AM.
Reply With Quote