Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Mar 2010
    Posts
    72
    Plugin Contributions
    0

    Default Date problem when adding featured product

    Version 1.3.9b

    Catalog -> Featured Products

    Select a product from the list

    Use the arrow alongside the available date field to pull down the calendar and select a date

    Do the same for the expiry date

    The dates in those fields now have a / at the beginning which means that when you click on "insert", dates in 2036 are entered instead of the correct ones. Removing the / from each field before clicking on "insert" makes it WAD.

    I've read the thread at http://www.zen-cart.com/forum/showth...d+product+date regarding this problem. I have edited the two english.php files per http://tutorials.zen-cart.com/index.php?article=401 so I went and checked through the relevant sections of each very carefully to see if I had made an error. I found none.

    Dates elsewhere on the site - both in Admin and the Online Catalog - work fine.

    Regards

    Nick

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Date problem when adding featured product

    I am not reproducing a problem on the dates using the calendars ...

    Have you changed anything about the dates in the Admin?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Mar 2010
    Posts
    72
    Plugin Contributions
    0

    Default Re: Date problem when adding featured product

    Quote Originally Posted by Ajeh View Post
    Have you changed anything about the dates in the Admin?
    Only the edits to the english.php files to change to UK date format, as referred to above. No other changes.

    Regards

    Nick

  4. #4
    Join Date
    Mar 2010
    Posts
    72
    Plugin Contributions
    0

    Default Re: Date problem when adding featured product

    A bit more background to this:

    It was working fine in 1.3.8, prior to the upgrade. Since the upgrade I have re-edited the new english.php files in admin and the catalog (per the FAQ) to the UK date format. As a sanity check, I have checked all of the edits again.

    In Catalog -> Featured Products when I pull down the calendar and select a date, it is posted into the date field in the form:

    /03/05/2010 (note the dd/mm/yyyy format and the fact that the initial / which is causing the problem).

    In Catalog -> Categories/Products if I define or edit a product, pull down the calendar there for "Date Available" and select a date, it is posted into the field in the form:

    2010-05-03 (which works fine when I preview and save it).

    Regards

    Nick

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Date problem when adding featured product

    Have you been able to resolve this issue or is it still a problem for you?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #6
    Join Date
    Mar 2010
    Posts
    72
    Plugin Contributions
    0

    Default Re: Date problem when adding featured product

    Still the same. I've just been manually editing out the leading /

    Regards

    Nick

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Date problem when adding featured product

    In the:
    /admin/includes/languages/english.php

    Are you using:
    Code:
    define('DATE_FORMAT_SPIFFYCAL', 'dd/mm/yyyy');
    Or are you using:
    Code:
    define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  8. #8
    Join Date
    Mar 2010
    Posts
    72
    Plugin Contributions
    0

    Default Re: Date problem when adding featured product

    The second:

    define('DATE_FORMAT_SPIFFYCAL', '/dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

  9. #9
    Join Date
    Mar 2010
    Posts
    72
    Plugin Contributions
    0

    Default Re: Date problem when adding featured product

    Ah, Eureka. Just seen the problem!

    Doh! How did I miss that.

    Of course it's working fine now (not surprisingly).

    Thanks for pointing me in the right direction.

    Nick
    Last edited by nickgreaves; 22 Jul 2010 at 12:08 AM.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Date problem when adding featured product

    I just tried a v1.3.8 with /admin/includes/languages/english.php changed from:
    define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    to be:
    define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    and the same issue exists ...

    There is a problem with the definition as to adding the dates in that format ...

    However, this appears to be an error also in v1.3.8 ...

    We will look into this further ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Featured Product date problem-I'm Stuck!
    By piker in forum Basic Configuration
    Replies: 9
    Last Post: 12 Apr 2010, 10:34 AM
  2. Adding more than just 3 products to the featured product box
    By peter3827 in forum Basic Configuration
    Replies: 2
    Last Post: 28 Apr 2009, 07:32 PM
  3. Adding 2nd Featured Product
    By bclair in forum Customization from the Admin
    Replies: 0
    Last Post: 6 Oct 2007, 08:44 PM
  4. Why Can't I See The Expiry Date On Special or Featured Product?
    By Robert T in forum Setting Up Specials and SaleMaker
    Replies: 4
    Last Post: 13 Mar 2007, 10:24 PM
  5. Adding new featured product sections
    By TheSpunkyLobster in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2006, 02:32 PM

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
  •