Jump to content

Payment Module for 1.6 e 1.7: use PrestaShop\PrestaShop\Core\Payment\PaymentOption;


Recommended Posts

I am converting payment modules from PS 1.6 to 1.7
I would like to make a single installation compatible with both PS 1.6 and 1.7, but the declaration namespaces:

use PrestaShop\PrestaShop\Core\Payment\PaymentOption;

does not allow me to run the module in PS 1.6, there is a way around the problem or I have to make two versions one for PS 1.6 and one for PS 1.7.

 

 

 

Link to comment
Share on other sites

18 hours ago, Arteinfo said:

does not allow me to run the module in PS 1.6, there is a way around the problem or I have to make two versions one for PS 1.6 and one for PS 1.7.

Personally I have moved to maintaining different modules for PS v1.6 and v1.7.

While it is possible to get creative and work around the name space issue, there are other differences in smarty, javascript and checkout processes where you will need to do a lot of version conditioning statements.  in the end it is just easier to maintain separate module versions.

 

Link to comment
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
×
×
  • Create New...