Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Posts
    89
    Plugin Contributions
    0

    Default Expiry Date - Blank Value

    How do i add a blank value into the $expires_month[] array.

    I want the dropdown to have a selected value of 'Please Choose' or blank, so people have to change it from the default date.

    Need to alter the following...

    Code:
    for ($i=1; $i<13; $i++) {
            $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
          }

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: Expiry Date - Blank Value

    IF I am reading you right, the answer is to have the options thusly using the example of Date as the Option Name.
    All can be done from the Attributes Controller in the admin panel
    • Under Option Name Date, Create an Option Value of "Please Select a Date"
    • Select the Product and Press Display
    • Under Adding New Attributes, the Order and Attribute Flags are the important part.
    • set order to 0
    • click flag buttons for - Yes No Yes Yes Yes No
    • Click the insert button

    This makes the first Item in the Drop Down the "instructions" to select a date and tells the system it is not a valid choice but only for display.

    Couldn't find Ajeh's explanation to me some time ago, so I'm paraphrasing.

    HTH

  3. #3
    Join Date
    Jun 2005
    Posts
    89
    Plugin Contributions
    0

    Default Re: Expiry Date - Blank Value

    Thanks for the reply.

    However, I believe your solution will only work as an attribute on a product.

    I am referring to the Expiry Date dropdown at the payment stage for a credit card

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: Expiry Date - Blank Value


    Knew I was too sleepy to comprehend.

  5. #5
    Join Date
    Sep 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Expiry Date - Blank Value

    I could use this information too

    seems authorizenet module keeps giving a date that is 2 moths and 11 years off

    I rather have people type in their dates than use the drop down.

 

 

Similar Threads

  1. v154 Special product expiry date
    By Cenkki in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Feb 2015, 03:28 PM
  2. specials expiry date wrong
    By bear1728 in forum General Questions
    Replies: 3
    Last Post: 29 Jun 2010, 12:56 AM
  3. Product Expiry Date
    By dlangham in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 14 Oct 2009, 06:38 AM
  4. Specials Expiry Date
    By Cal in forum Setting Up Specials and SaleMaker
    Replies: 9
    Last Post: 5 Sep 2009, 04:21 AM
  5. Expiry date for products... HELP!
    By ixtlan in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Dec 2008, 12:09 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