Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default adding additional payment radio button(s)

    Hi, I'm really stuck on this, at checkout we have all the card options apart from visa debit which i'd like to put in, Think ive found the right file to edit which is worldpay.php, around line 49, 521 and 664 I've inserted additional bits for 'visa debit' but the radio button wont show up, does something need to configured in the admin? or am I missing something in the code?

  2. #2
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: adding additional payment radio button(s)

    could you post your code?

  3. #3
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: adding additional payment radio button(s)

    I couldnt because it was too long! how can I post the whole lot?? Sorry! I'm fairly new to this still

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: adding additional payment radio button(s)

    Alternative to trying to post a large block of code:
    Assuming you downloaded the original file from some download source, give the URL to that.
    Then paste the relevant changes, plus or minus 5 lines or so, to show what you've altered.
    There's no point cluttering the forum with code that's unrelated to your immediate problem, esp when it's already available elsewhere.
    .

    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
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: adding additional payment radio button(s)

    http://www.thegreatgiftshop.co.uk/in...eckout_payment


    first section edited;
    $this->cc_map = array(
    'AMEX' => 'American Express',
    'DINS' => 'Diners Card',
    'ELV' => 'ELV',
    'MAES' => 'Maestro',
    'MSCD' => 'Master Card',
    'SOLO' => 'Solo',
    'VISA' => 'Visa',
    'VISDEB' => 'Visa Debit',
    'VISD' => 'Visa Delta',
    'VIED' => 'Visa Electron',
    'VISP' => 'Visa Purchasing',
    '0' => 'I will choose a method later'
    ) ;



    second section edit;

    'MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC_LIST', '', 'Tick the credit cards worldpay has authorized you to accept.', '6', '8', 'worldpay->wp_ech', '\$module->wp_cfg_select_multioption(array(
    \'AMEX\' => \'American Express\',
    \'DINS\' => \'Diners Card\',
    \'ELV\' => \'ELV\',
    \'JCB\' => \'JCB Card\',
    \'MSCD\' => \'Master Card\',
    \'MAES\' => \'Maestro\',
    \'SOLO\' => \'Solo\',
    \'VISA\' => \'Visa\',
    \'VISADEB\' => \'Visa Debit\',
    \'VISD\' => \'Visa Delta\',
    \'VIED\' => \'Visa Electron\',
    \'VISP\' => \'Visa Purchasing\'
    ), ', now() )");
    }

    third section edited;
    // function cc_options($unk){
    //
    // print '<h1>'.$unk.'</h1>';
    //
    // $viable = array(
    // "AMEX" => "American Express",
    // "DINS" => "Diners Card",
    // "ELV" => "ELV",
    // "JCB" => "JCB Card",
    // "MAES" => "Maestro",
    // "MSCD" => "Master Card",
    // "SOLO" => "Solo",
    // "VISA" => "Visa",
    // "VISADEB" => "Visa Debit",
    // "VISD" => "Visa Delta",
    // "VIED" => "Visa Electron",
    // "VISP" => "Visa Purchasing",
    // "0" => "I will choose a method later"
    // );
    //

 

 

Similar Threads

  1. v139h Adding a new radio button
    By kitten091182 in forum General Questions
    Replies: 3
    Last Post: 23 Jan 2014, 02:08 PM
  2. Payment method radio button
    By arrow in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Dec 2007, 03:22 PM
  3. Payment module radio button
    By rocketrod in forum Built-in Shipping and Payment Modules
    Replies: 22
    Last Post: 30 Aug 2007, 06:24 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