Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Coming Products question....

    I don't have time to search right now. Baby is crying, hubby needs me, etc. BUT I just listed an item that I didn't want to be available to purchase until the 14th. It doesn't say that on the listing anywhere though, in fact I am able to add it to my cart now and go to checkout. Did I do something wrong? This product is cross-linked from another site and I know will be getting views soon but I don't want them to be able to buy it yet. What do I need to do?

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

    Default Re: Coming Products question....

    The Date Available is more like saying when the product will be in stock for shipping ... this does not control when the product can be added to the cart ...

    Set the products_quantity to 0 and set 0 to mean Sold Out and no one can buy it until you add quantity in stock on the product ...

    Turn on the message about it for the Product _info page in the Catalog ... Product Types ... EDIT LAYOUT ...
    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!

  3. #3
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: Coming Products question....

    Thank you Linda! I didn't get a chance to get back last night. Our little guy has had a tough week....an ER trip early, feeling better now, but still REALLY irritable and not completely himself.

    Anyway, if I do that, it would mark it as sold out wouldn't it? I don't want people to think it's already sold out and not come back to buy it either! LOL!

    The place where I have the other custom listed works in that you set a date and time that it becomes available for purchase. People have until that time to look and anticipate for it, and then the product automatically goes "live" at the set time and it's like a "race" to purchase. At least most of the time it works that way! LOL! Because these customers are used to this process, if it says sold out, they may not come back, thinking they have missed it.

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

    Default Re: Coming Products question....

    You can always customize the buy now and add to cart buttons ...

    The buttons all handily use a function to manage what button should or should not display ...

    Now how hard can this be ... think ... think ... think ...


    Got it!!

    In the functions_general.php function file you will see the function zen_get_buy_now_button ...

    To make products not yet available, based on the products_date_available field you can

    Change the code from:
    Code:
        $button_check = $db->Execute("select product_is_call, products_quantity 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;
    to read:
    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;
    Easy smeazy eh? Don't forget us when you are rich and famous!!
    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!

  5. #5
    Join Date
    Nov 2008
    Posts
    230
    Plugin Contributions
    0

    Default Re: Coming Products question....

    Quote Originally Posted by Ajeh View Post

    Got it!!

    In the functions_general.php function file you will see the function zen_get_buy_now_button ...

    To make products not yet available, based on the products_date_available field you can

    Change the code from:
    Code:
        $button_check = $db->Execute("select product_is_call, products_quantity 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;
    to read:
    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;
    Easy smeazy eh? Don't forget us when you are rich and famous!!
    AAAAAAGGGHHHHHH!!! YOU. ARE. AMAZING!!!!

    THANK YOU!!!!

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

    Default Re: Coming Products question....

    I have been known to have my moments ...

    Thanks for letting us know that this works for you ...

    When they are beating down your doors and buying you out on day one, remember us fondly!!
    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!

 

 

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