Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Location
    Bay area, California
    Posts
    12
    Plugin Contributions
    0

    Default Mod CC month drop down menu?

    Greetings all Zenners!

    I've spent a couple of months walking around and setting up a new Zen cart install.
    The search function on this support forum has helped me solve many issues and answered many questions but this one has me a little stumped.

    I have installed Innovative gateway module (and modified for CVV2). It works correctly.

    What I want now is to modify the month drop down menu text in the CC checkout page from January,February etc to January-01, February-02 and so forth. (I have another ecommerce site and am constantly surprised by how many people can't count their months off their credit cards...)
    Anyway where would I start looking to find the month list?

    Thanks in advance.

    Keep up the excellent work folks!

    Br

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

    Default Re: Mod CC month drop down menu?

    See if you don't have in the function selection() of the Payment Module a spot where it builds the content for the dropdown ...

    You could adapt the code for what you are wanting ...
    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
    May 2006
    Location
    Bay area, California
    Posts
    12
    Plugin Contributions
    0

    Default Re: Mod CC month drop down menu?

    Thanks for the reply.

    I replaced:

    PHP Code:
    for ($i=1$i<13$i++) {
            
    $expires_month[] = array('id' => sprintf('%02d'$i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
          } 
    with:
    PHP Code:
    $expires_month = array(
       
    => 'Select Month',
       
    => '01-January',
       
    => '02-February',
       
    => '03-March',
       
    => '04-April',
       
    => '05-May',
       
    => '06-June',
       
    => '07-July',
       
    => '08-August',
       
    => '09-September',
       
    10 => '10-October',
       
    11 => '11-November',
       
    12 => '12-December',
    );

    $select '<select name="expires_month" id="expires_month">'."\r\n";

    foreach(
    $expires_month as $key => $value){
       
    $select .= "\t".'<option value="'.$key.'">' $value.'</option>'."\r\n";
    }

    $select .= '</select>'
    But I only get the first letter of the array in the drop down menu.
    It's getting late here now and but I'll need to go back and study up on my php coding to see where I screwed up..

    Cheers!
    Br

 

 

Similar Threads

  1. Category Drop Down SELECT Menu Sidebox Mod.
    By jettrue in forum All Other Contributions/Addons
    Replies: 142
    Last Post: 19 Apr 2023, 05:16 PM
  2. DOB Drop Down MOD
    By blackwolf in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 28 Dec 2010, 03:24 AM
  3. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 PM
  4. Creating a drop down menu for the diff type of CC's using zen basic mod.
    By estrange in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 17 Jan 2007, 04:40 AM

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