Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Coming Products question....

    If the time where there to be used and the calculations available for the time itself then it would show ...

    I have not tried to take this beyond the date on functionality but gave the full syntax for date and time ...
    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!

  2. #22
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: Coming Products question....

    Quote Originally Posted by Ajeh View Post
    If the time where there to be used and the calculations available for the time itself then it would show ...

    I have not tried to take this beyond the date on functionality but gave the full syntax for date and time ...
    AHHHHHH!! So I *wasn't* completely off my rocker! LOL! Thank you!!

    *crossing fingers that this will be one of the "upgrades" with the new release*

  3. #23
    Join Date
    Aug 2004
    Posts
    112
    Plugin Contributions
    0

    Default Re: Coming Products question....

    thanks Ajeh, this works great! ;)

  4. #24
    Join Date
    Aug 2004
    Posts
    112
    Plugin Contributions
    0

    Default Re: Coming Products question....

    Urgh, sorry to be a nuisance Ajeh, I quoted you on the wrong code earlier, what I wanted was to know how to keep/add the "add to cart" button to the following code:



    $button_check = $db->Execute("select product_is_call, products_quantity, products_date_available from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
    switch (true) {
    // cannot be added to the cart
    case (zen_get_products_allow_add_to_cart($product_id) == 'N'):
    return $additional_link;
    break;
    case (date_diff($button_check->fields['products_date_available'], date('Y-m-d H:i:s', time())) < 0 ):
    $return_button = 'Coming Soon!!<br />Count Down: ' . date_diff($button_check->fields['products_date_available'], date('Y-m-d H:i:s', time())) . ' Days!';
    break;



    So instead of it saying "Coming Soon!!" it would instead have the add to cart button in its place.

    Thanks again.

  5. #25
    Join Date
    Mar 2009
    Posts
    29
    Plugin Contributions
    2

    Default Re: Coming Products question....

    The code presented here breaks listing under 1.3.9.

    Any changes to the code that will make it work under 1.3.9?

    thanks!

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

    Default Re: Coming Products question....

    Let's pretend that no one has seen this code in a couple three years ...

    What code is breaking what and what is the error message that you see in the /cache on the debug log that is generated?
    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!

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 18
    Last Post: 10 Feb 2015, 04:34 PM
  2. Replies: 2
    Last Post: 19 Sep 2012, 03:39 AM
  3. Coming Soon Products
    By Halollet in forum General Questions
    Replies: 7
    Last Post: 9 Aug 2010, 11:02 PM
  4. Products Aren't Coming Up
    By vivaraquel in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 19 Jan 2007, 07:10 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