Post by SoftwareAssistance » Fri Feb 27, 2015 6:29 pm

I have found many similar posts to this but can't find anything that specifically answers my question. Apologies if this has been answered before.

I have a customers OpenCart site that only allows delivery to the UK. Payments are only taken through PayPal Payments Standard.

If a customer resides outside the UK but wishes to make a purchase for delivery inside the UK they are not given any payment options as payment method options are specific to customers address GeoZone not delivery address GeoZone. In this circumstance the customer just sees 'Warning: No Payment options are available. Please contact us for assistance!' in the payment method box in checkout.

How do I get payment methods to look at delivery address, not customer address, when deciding which payment methods are available? I don't think that I should change $order_info['payment_ to $order_info['shipping_ in /catalog/controller/payment/pp_standard.php as this will pass the wrong payment details to PayPal. I need to change the code that decides which address to use when deciding payment methods.

Many thanks for reading this post. I hope you have the answer for me.


Posts

Joined
Fri Feb 27, 2015 6:10 pm

Post by Johnathan » Sat Feb 28, 2015 12:11 am

If you set PayPal to be available everywhere, then you could use Restrict Payment Methods to limit when it's enabled, based on the shipping address. You'd set up a restriction like this:

Payment Methods: PayPal
Rule: Location Comparison is Shipping Address
Rule: Geo Zone is UK

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 1 guest