Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Products Available Date

    Quote Originally Posted by Ajeh View Post
    You are most welcome ...

    Remember, you will have to remove the date manually when you want it to go away ...
    Hi Ajeh

    That first change in Admin is still causing a reset to a null value

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

    Default Re: Products Available Date

    What product_types do you use?

    There is a separate file for each Product Type ...
    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!]
    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. #13
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Products Available Date

    I've had to revert back to the original in Admin

    In Admin/products_expected.php

    I have commented out the following:

    // $db->Execute("update " . TABLE_PRODUCTS . "
    // set products_date_available = NULL
    // where to_days(now()) > to_days(products_date_available)");

  4. #14
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Products Available Date

    Quote Originally Posted by Ajeh View Post
    What product_types do you use?

    There is a separate file for each Product Type ...
    Product - General

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

    Default Re: Products Available Date

    I believe you will need both ... the code that I gave you and the code that you commented out in /your_secret_admin/products_expected.php ...

    And to see it in the Preview, add the code in RED:
    /your_secret_admin/includes/modules/product/preview_info.php
    Code:
    <?php
          if (true || $pInfo->products_date_available > date('Y-m-d')) {
    ?>
          <tr>
            <td align="center" class="smallText"><?php echo sprintf(TEXT_PRODUCT_DATE_AVAILABLE, zen_date_long($pInfo->products_date_available)); ?></td>
          </tr>
    <?php
          } else {
    ?>
          <tr>
            <td align="center" class="smallText"><?php echo sprintf(TEXT_PRODUCT_DATE_ADDED, zen_date_long($pInfo->products_date_added)); ?></td>
          </tr>
    <?php
          }
    ?>
    Silly little extra things to tidy up that I missed ...
    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!]
    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!

  6. #16
    Join Date
    May 2014
    Location
    UK
    Posts
    317
    Plugin Contributions
    0

    Default Re: Products Available Date

    Quote Originally Posted by Ajeh View Post
    I believe you will need both ... the code that I gave you and the code that you commented out in /your_secret_admin/products_expected.php ...

    And to see it in the Preview, add the code in RED:
    /your_secret_admin/includes/modules/product/preview_info.php
    Code:
    <?php
          if (true || $pInfo->products_date_available > date('Y-m-d')) {
    ?>
          <tr>
            <td align="center" class="smallText"><?php echo sprintf(TEXT_PRODUCT_DATE_AVAILABLE, zen_date_long($pInfo->products_date_available)); ?></td>
          </tr>
    <?php
          } else {
    ?>
          <tr>
            <td align="center" class="smallText"><?php echo sprintf(TEXT_PRODUCT_DATE_ADDED, zen_date_long($pInfo->products_date_added)); ?></td>
          </tr>
    <?php
          }
    ?>
    Silly little extra things to tidy up that I missed ...
    That all seems to be working fine thank you .. could not have done it without your help!!!!!

    And not a problem with manually removing the dates - that was the whole intention once we locate and upload the books

    :)

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

    Default Re: Products Available Date

    You are most welcome and thanks for pointing out that I should have searched further on this one before I posted the code changes so that I would not have missed any of the additional ones needed ...
    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!]
    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!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. who set my all my products date available at 1970-01-01?
    By andy2012 in forum General Questions
    Replies: 1
    Last Post: 18 Aug 2012, 10:41 AM
  2. v139h Question about Products Date Available vs Sold Out
    By I wish I could in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 9 Aug 2012, 05:27 AM
  3. Problem with Date Available products
    By kyotox in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 9 Aug 2009, 11:39 PM
  4. Products Expected/Date Available
    By janellez in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Oct 2007, 05:38 AM
  5. New Products and Date Available
    By Darkwander in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Feb 2007, 01:56 PM

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