Page 1 of 1

MULTIPLE PAYMENT SERVICE POSITION!!

Posted: 28 Apr 2019, 13:48
by joemons
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

Re: MULTIPLE PAYMENT SERVICE POSITION!!

Posted: 29 Apr 2019, 09:19
by aimeos
The problem might be at one of these locations:
- https://github.com/aimeos/ai-client-htm ... d.php#L246
- https://github.com/aimeos/ai-client-htm ... d.php#L340

The first is when adding the payment services to the basket where the IDs might be given in wrong order. The second is when using the payment service, the associative array might be

Code: Select all

array( 1 => [second service], 0 => [first service] )
In the second case, adding a ksort() before can fix the issue.