Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Payment Modules / Paypal IPN payment option - limiting it to one specific country

Paypal IPN payment option - limiting it to one specific country

Locked

Started by nigelt74 on 21 Jun 2007, 12:39 AM · Views: 1,767

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
21 Jun 2007, 12:39 AM
#1
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Post #1 by nigelt74

Hi

In my store i want to allow paypal as an option for national orders BUT I don't want it to be available for international orders, and i can't see a way to do this

Is it possible at all?

Webzings Design
Semi retired from Web Design

21 Jun 2007, 7:59 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

Try looking at the Modules ... Order Totals ... Low Order Fee ot_loworderfee and see how it distinguishes this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Jun 2007, 12:43 AM
#3
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Post #3 by nigelt74

Hi Ajeh

Could you possibly expand on that a bit
I see a bit in the "ot_loworderfee" file that sorts national from international

However I am a little lost as to how to make use of it

I am probably going to explain this terribly but bear with me

Currently my guess is that i should put some sort of switch/If statement on the classes/payments page when it calls the paypal option around line 28

something along the lines of

if ((payment_module_installed == 'paypal') && (delivery['country_id'] != STORE_COUNTRY)
{}
else
{
carry on with the rest of function
}

but that doesn't seem right, and i can't figure anywhere else to put it it

Webzings Design
Semi retired from Web Design