Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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!

  3. #3
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Payment mod enable by language

    Quote Originally Posted by Ajeh View Post
    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

  4. #4
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Payment mod enable by language

    I think I know which file to edit now.

    Thanks Ajeh for pointing it out.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Payment mod enable by language

    Let us know what solution you come up with ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. v139h enable a payment option when condition is meet
    By diptimoy in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 19 Mar 2015, 03:40 AM
  2. disable/enable nochex payment mod based on amount?
    By gamenano in forum Addon Payment Modules
    Replies: 6
    Last Post: 19 Feb 2010, 03:04 AM
  3. Protx free payment mod vs payed mod?
    By ollie2008 in forum Addon Payment Modules
    Replies: 1
    Last Post: 10 Apr 2008, 11:36 PM
  4. Conditional enable for payment method
    By s_p_ike in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 6 Sep 2007, 04:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR