Multiple payment service position
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Multiple payment service position
Hello,
I'm using 2 payments services at the same time with aimeos and it works very well except for one point :
- When I add two services to my basket, at the end of the checking process, when I finally click on the "process" button, it is not the service with position 1 that is processed but the service with position 2. I'm not sure how Aimeos decides which service has to be linked in first place to this process button (on the summary view).
I would like it to use by default the service that has the lowest position (position : 1).
How can I change that?
Thank you very much !
sbn
I'm using 2 payments services at the same time with aimeos and it works very well except for one point :
- When I add two services to my basket, at the end of the checking process, when I finally click on the "process" button, it is not the service with position 1 that is processed but the service with position 2. I'm not sure how Aimeos decides which service has to be linked in first place to this process button (on the summary view).
I would like it to use by default the service that has the lowest position (position : 1).
How can I change that?
Thank you very much !
sbn
Re: Multiple payment service position
By default the first (payment) service in the array is used, whichever this is:
https://github.com/aimeos/ai-client-htm ... d.php#L344
Don't know if it makes sense to push the services in the right order into the basket because they can be removed and added again by the basket plugins. The best way might be to add a "position" property to the order base service item and to enforce the order in the getService()/getServices() method of the basket.
https://github.com/aimeos/ai-client-htm ... d.php#L344
Don't know if it makes sense to push the services in the right order into the basket because they can be removed and added again by the basket plugins. The best way might be to add a "position" property to the order base service item and to enforce the order in the getService()/getServices() method of the basket.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Multiple payment service position
Thank you very much