Jump to content

Upgrade module that override classes.


yahool
 Share

Recommended Posts

Hi,

 

I develope one module (my_module 1.0.0) for PS version 1.6.0.1 and this module have my_module/override/classes/Search.php

In that file I have exactly copy of core function 'find' with one additional line added.

 

Now I upgrade my PS to latest version 1.6.0.14 and I see core file /classes/Search.php has some modification in 'find' function.

So I want to prepare right now upgrade of my_module to version 1.0.1 for PS 1.6.0.14.

How to do it right way?

1. Increase my_module version to 1.0.1
2. Copy body of /classes/Search.php 'find' function and paste to /my_module/override/classes/Search.php + add my one modified line.

3. Zip all and send to addons market

 

Should I set somewhere that 1.0.1 is just for PS 1.6.0.14 and older version 1.0.0 is for PS 1.6.0.1?

 

Next issue I'm not sure is what about customers that bought my_module 1.0.0 and upgrade PS to 1.6.0.14

If that customer start upgarde my_module to 1.0.1 does his old /override/classes/Search.php be changed with new my_module/override/classes/Search.php file?

 

Also when I send my_module 1.0.1 to addons marketplace only this version will be buyable and what if customer that has PS 1.6.0.1 installed buy my_module 1.0.1?

I think in marketplace should be somewhere option to set my_module 1.0.0 can be bought for PS 1.6.0.1 and my_module 1.0.1 can by bought for PS 1.6.0.14. Is that doable in marketplace?

 

I'm losta a little with that version issues. Can someone clarify that to me?

 

Regards

yahool

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More