Page 1 of 1

[SOLVED]3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 1:27 am
by Karonia69
Hi,

OK, I'm probably ( hopefully ) missing something here, I just want Free Checkout to come first in the Payment Method Sequence or be the default, in the Payment Extensions, Free Checkout is 1 and SagePay is 15 ... Anyone come across this ??
OC1.png

Checkout - OC1.png (42.3 KiB) Viewed 1513 times


Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 1:32 am
by mikeinterserv
In your payment extensions there is a SORT ORDER
You set the sort order in the payment extension
So make free checkout sort order 1

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 1:37 am
by Karonia69
as I said, in the Payment Extensions, Free Checkout is 1 and SagePay is 15

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 1:47 am
by mikeinterserv
Refresh your cache and sass cache and see if it changes.
I just checked with 3.0.2.0 and is working fine
It is probably seeing sagepay as 1 change it to 2

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 2:01 am
by Karonia69
I've changed the sort order digits, I've refreshed both Theme and SASS caches... Still the same!!! LOL

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 2:07 am
by mikeinterserv
So free checkout is sort order 1
Sage pay is sort order 2
You refreshed the cache and sass
Now make sure to log out as customer - log back in- hard refresh the page - in chrome that is CTRL+ SHIFT+ R at the same time.
If you using edge press CTRL and the refresh button at the same time.
Free checkout should only appear if the total in shopping cart is ZERO
If the Total is NOT ZERO then Free checkout should not appear

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 2:30 am
by mikeinterserv
For Free checkout make sage pay higher than 0.00
It will not appear for totals of ZERO and free checkout will be the only choice.
Also I think there is another fix for OC 3.0.2.0 for free checkout issue of order going into missing orders in case you run into that also.

In the screenshots - if cart total is higher than ZERO there is no free checkout choice.
If the total is ZERO AND you have sage pay set to ZERO for order amount it will display BOTH but in the correct order,
Generally Sage Pay will never be set at ZERO amount

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 2:42 am
by Karonia69
Yes, to all of the above, but still the same.
SagePay is set to 1.00 and is being displayed when the value is ZERO... so that's the problem!!

Now, how to fix it!! LOL

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 2:55 am
by mikeinterserv
So your cart total is definitely ZERO - no shipping - no nothing
Sage pay is set to TOTAL 1.00
Then Sage Pay is STILL appearing for payment method when cart total is ZERO
Unfortunately I am unable to replicate it so its going to be difficult to go further.

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 3:04 am
by Karonia69
Thanks for the help, even if I set SagePay to 10000, it's still showing with Free Checkout!!

[SOLVED] 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 6:44 pm
by Karonia69
The sagepay_server_iframe module I'm using didn't have the correct values in the controller module, added PAYMENT_ in front of each of the variables and HEY PRESTO!!!

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 6:49 pm
by paulfeakins
Karonia69 wrote:
Wed Feb 17, 2021 3:04 am
Thanks for the help, even if I set SagePay to 10000, it's still showing with Free Checkout!!
Sounds like an extension or something is messing things up quite a bit, perhaps it's time to pay a developer from the Commercial Support Forum.

Re: 3.0.2.0 Payment Method Order in Checkout

Posted: Wed Feb 17, 2021 7:40 pm
by Karonia69
paulfeakins wrote:
Wed Feb 17, 2021 6:49 pm
Karonia69 wrote:
Wed Feb 17, 2021 3:04 am
Thanks for the help, even if I set SagePay to 10000, it's still showing with Free Checkout!!
Sounds like an extension or something is messing things up quite a bit, perhaps it's time to pay a developer from the Commercial Support Forum.
Thanks for the advice, looks like it was just a badly written extension that's been working for years, it was only when we tried to do 'Free' products than the error came to light, modified/corrected the extension and it's looking good ;D