Results 1 to 8 of 8

Hybrid View

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

    Default Credit Card Month menu by number not month name?

    Hi All,

    I've tried modding the php script to show in Step 2 of the checkout page payment info box, CC Month drop down menu to display: (01) January, (02) February etc. but so far not made it work.

    Now, this may seem like an odd request, but I've seen (on another site I have) customers often entering the wrong month and having the CC rejected. Yes, apparently some people do have trouble counting months. Anyway, I changed it on that site (non- Zen cart) and now have no issues with the month Name Versus Month Number during checkout.

    Any pointers on what to mod will be greatly appreciated.

    Thanks!
    Bruce

    Zen cart V1.3.02 with security updates, Innovative Merchant (Quickbooks Merchant Account) module.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Credit Card Month menu by number not month name?

    The array used in the dropdown is built dynamically using native MYSQL functionality. In your module you will find %B used to build the expiration months. To use the number of the month you can use %m. (note: those are case sensitive and I have not tested that change.)
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Credit Card Month menu by number not month name?

    Code:
        for ($i=1; $i<13; $i++) {
          $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
        }
    You should have some sort of statement sililar to the above in your payment module file.

    Change the '%B' to '(%m) - %B' to get (01) - January etc.

    Be sure to test thoroughly before going live with changes and back up first!!!
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    May 2006
    Location
    Bay area, California
    Posts
    12
    Plugin Contributions
    0

    Default Re: Credit Card Month menu by number not month name?

    Thanks Kim!

    I'll test and report back.

  5. #5
    Join Date
    May 2006
    Location
    Bay area, California
    Posts
    12
    Plugin Contributions
    0

    Default Re: Credit Card Month menu by number not month name?

    I tried the mod as you described and it worked perfectly.

    Thanks for you help. The development team is doing a fantactic job!

    Bruce

  6. #6
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Credit Card Month menu by number not month name?

    Thanks for letting us know that adding the month's number to the function helped. Don't forget how we all love coffee.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. v153 Month-By-Month Breakdown of Products Expected
    By retched in forum Contribution-Writing Guidelines
    Replies: 4
    Last Post: 25 Jul 2014, 12:10 AM
  2. Replies: 5
    Last Post: 29 Nov 2010, 06:28 AM
  3. Replies: 2
    Last Post: 16 Nov 2009, 07:35 AM
  4. i can't upgrade the special prices from month to month?
    By zooma in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 1 Oct 2009, 06:56 AM
  5. Month Numbers in Credit Card expiration
    By [email protected] in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Sep 2006, 01:59 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