Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    red flag How and where the configuration_values are defined

    Hi Zen cart Gurus,

    I have a very specific question - how and where the paypal parameters are linked to the configuration table. To be more specific:

    1. The file includes/modules/payment/paypal.php has variables names like MODULE_PAYMENT_PAYPAL_BUSINESS_ID or MODULE_PAYMENT_PAYPAL_CURRENCY

    2. Those parameters are listed in the CONFIGURATION table as configuration_keys, while their values are in the next field configuration_values

    3. How and where those configuration keys are linked to the configuration values? I just cannot find any db queries calling the values from the configuration table.

    I would appreciate your help.

    Thanks

    Andy

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How and where the configuration_values are defined

    Can I ask why you're asking ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: How and where the configuration_values are defined

    I am developing a few custom payment modules and have to create multiple instances for each payment gateway. is there something wrong in my question?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How and where the configuration_values are defined

    All the configuration keys are loaded from the database and converted into defined constants during the application_top process via the initSystem (init_includes, etc).

    I don't recommend intercepting that.

    Instead, if you are attempting to clone modules, I strongly recommend creating unique key/constant names so as to not end up with clashes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: How and where the configuration_values are defined

    Thank you, I have found it already. You are right, it is a bad way to change those variables. Instead, I am using another way:

    1. created a few new tables for multiple gateways of the same category with different client ids
    2. calling those variables when generating the order submit button.

    Almost done and it works fine. The only problem is that i have to rewrite all your payment classes to call the variables from another table.

    All the best

    Andy

 

 

Similar Threads

  1. Where are the $EMAIL_GREETING type things defined?
    By digidiva-kathy in forum General Questions
    Replies: 3
    Last Post: 12 Sep 2011, 03:07 AM
  2. Easy populate - quick question - where are the images defined??
    By Ben-B in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 11 Feb 2008, 03:13 AM
  3. Where are the email variables defined
    By rhodesengr in forum General Questions
    Replies: 1
    Last Post: 7 Feb 2008, 09:27 PM
  4. Where do I find proper files where constants are defined?
    By joshuwaj in forum General Questions
    Replies: 17
    Last Post: 18 Jan 2008, 05:28 AM
  5. Where are MEDIUM_IMAGE_WIDTH, etc are defined?
    By harmeet in forum General Questions
    Replies: 5
    Last Post: 12 May 2006, 03:52 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