Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    35
    Plugin Contributions
    2

    Default Re: Addding extra card types

    DrByte... thanks... worked like a treat!

    For future.. anyone wanting to add extra credit cards to your cart
    etc. (Setp 2 of 3) Payment information.

    This will only display the image.. not validate the card.

    Solution

    Step 1:
    add your card images to
    HTML Code:
    includes\templates\template_default\images\icons\{c11.gif}
    Step 2:
    Open
    HTML Code:
    includes\languages\english\credit_cards.php
    add the following lines of code
    PHP Code:
    define('TEXT_CC_ENABLED_EC','EC Card');
    define('IMAGE_CC_ENABLED_EC'zen_image($template->get_template_dir('cc11.gif'DIR_WS_TEMPLATE$current_page_base,'images/icons'). '/' 'cc11.gif')); 
    Step 3:
    Go into admin->tools->install sql patches
    (Make sure you backup first)

    insert the following
    PHP Code:
    INSERT INTO configuration (configuration_titleconfiguration_keyconfiguration_valueconfiguration_descriptionconfiguration_group_idsort_orderset_functiondate_addedVALUES ('Credit Card Enable Status - EC''CC_ENABLED_EC''1''Accept EC 0= off 1= on''17''1''zen_cfg_select_option(array(\'0\', \'1\'), 'now()); 

    Step 4:
    Go to admin->credit cards
    and set
    HTML Code:
    your new card (EC) to number 1
    make sure
    HTML Code:
    Credit Card Enabled - Show on Payment = 2
    All the best

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Addding extra card types

    I REPEAT: USE AT OWN RISK.
    You'll have additional work to do when upgrading.
    .

    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.

 

 

Similar Threads

  1. nochex payment module about card types
    By icezippo in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 6 Aug 2009, 05:33 PM
  2. WPP Direct Payment Accepted Card Types
    By fergusmacdonald in forum PayPal Website Payments Pro support
    Replies: 7
    Last Post: 26 May 2008, 07:34 AM

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