Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Payment mod enable by language

Payment mod enable by language

Locked

Views: 740

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
6 Sep 2010, 8:04 PM
#1
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Payment mod enable by language

Hi

Is it possible to have payment mod enable by languange?

say

Payment mod 1 only apply to language A;
payment mod 2 only apply to language B.

how to do it?

thanks!

6 Sep 2010, 8:53 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Payment mod enable by language

You could control the $this->enabled based on:
(int)$_SESSION['languages_id']

which will contain the value of the current languages_id from the languages table ...

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!

6 Sep 2010, 8:55 PM
#3
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: Payment mod enable by language

Ajeh:

You could control the $this->enabled based on:
(int)$_SESSION['languages_id']

which will contain the value of the current languages_id from the languages table ...

what file should I edit?

thanks

6 Sep 2010, 9:20 PM
#4
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: Payment mod enable by language

I think I know which file to edit now.

Thanks Ajeh for pointing it out.

7 Sep 2010, 2:20 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Payment mod enable by language

Let us know what solution you come up with ... :smile:

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!