- Posts: 31
- Thank you received: 3
How do I make WorldPay show up before login
- SteveEvans
-
Topic Author
- Offline
Apart from my client wants the payment option 'WorldPay' to show up on the list of payment methods before the user has registered or signed in.
At present, until you sign in, WorldPay doesn't show up as a payment method.
Don't get me wrong, they will still have to register/sign in to complete their order. It would just be nice to see it listed before they sign in.
Is it possible to change this?
Thanks in advance if anyone can help.
Please Log in or Create an account to join the conversation.
to see if you have one step or multi step checkout setup
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I think that you should :
- Go to "Hikashop->System->Configuration->Checkout"
- Edit your "checkout workflow"
- Set your login option after or in the same step as your payment option
Hope this will help you.
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Here is the screen grab. Maybe I am not understanding how the checkout workflow works, but I believe i have login after the payment option. My other payment option (pay by cheque) appears before the user is logged in.
Steve
Please Log in or Create an account to join the conversation.
you do have payment in a step before login.
since your other payment methods show up before the user logs in then either
a) the WorldPay payment plugin is assigned to zones. Delete those associated zones, or
b) WorldPay does not show until it knows which country the user is in, which can not happen until the user logs in.
I suspect it is b......
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Thanks - and yes WorldPay is not assigned to any zones, so I think it is b. / something in the WorldPay plugin.
Strangely, pay by cheque is assigned to a zone (UK only) and yet this does appear before the system knows the zone (ie before login).
Maybe Nicolas can shed some light on this?
Steve
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
No payment zone is set for WorldPay, so I need to edit the code
Where do I find this code?
Thank you,
Steve
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Just to confirm, the WorldPay payment method has no zone assigned.
Steve
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Steve
Please Log in or Create an account to join the conversation.
The modification that Mohamed proposed is fine. However, he told you to modify it in plugins\hikashoppayment\bf_rbsglobalgateway\bf_rbsglobalgateway.php
That file is for the WorldPay Global Gateway.
Are you sure that you're using the Global Gateway and not the Business Gateway ? If not, then you should edit that file and do the same modification:
plugins\hikashoppayment\bf_rbsbusinessgateway\bf_rbsbusinessgateway.php
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Yes I can confirm that this works although for anyone else trying to do this the path that Nicolas gives is still wrong.
It is in plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php
Thanks again.
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Fine - I figure the code has been over-written. I just need to change it again...
But when I look at /home/mywebsite/public_html/plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php the code for the function onPaymentDisplay has changed from the fix given by Mohamed.
I now have:
What do I need to change to get WorldPay to show up as an option before someone logs on like before?
Thanks,
Steve
Please Log in or Create an account to join the conversation.
You should have an option for the guest users, see in the plugin options if you can enable something which look like "display for guests"
Please Log in or Create an account to join the conversation.
- SteveEvans
-
Topic Author
- Offline
- Posts: 31
- Thank you received: 3
Many thanks
Steve
Please Log in or Create an account to join the conversation.