Forums / Setting Up Categories, Products, Attributes / Coming Products question....

Coming Products question....

Started by mamat on 13 Dec 2008, 1:30 AM · Views: 4,298

Results 1 to 20 of 26
13 Dec 2008, 1:30 AM
#1
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

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?

Me + Zen = Truehart Treasures

13 Dec 2008, 5:08 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

13 Dec 2008, 1:35 PM
#3
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

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.

Me + Zen = Truehart Treasures

13 Dec 2008, 5:06 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...
:frusty: :censored: :frusty:

Got it!! :lamo:

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:

    $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:

    $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!! :smile:

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!

13 Dec 2008, 7:18 PM
#5
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

Got it!! :lamo:

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:

$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:
> ```
    $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!! :smile:

AAAAAAGGGHHHHHH!!! YOU. ARE. AMAZING!!!!:onfire::clap:

THANK YOU!!!!:cool::hug::clap:

Me + Zen = Truehart Treasures

14 Dec 2008, 5:01 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

I have been known to have my moments ... :smartalec:

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!! :cool:

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!

14 Dec 2008, 3:56 PM
#7
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

I have been known to have my moments ... :smartalec:

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!! :cool:

<snort> You know, we've had stockings like that before! Where there are 50 people online, waiting for products to become active, and then sell out immediately! It's been exciting! It's been awhile though. I took a long break from knitting and the economy is much different now. I guess we'll see what happens:smile:

I'm not as anxious for my own products and I am for the kids and my husband. They are all very excited about this venture.

As for remembering you all.....you betcha! We certainly would have never gotten this far without you:hug:

Me + Zen = Truehart Treasures

14 Dec 2008, 4:36 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

Good luck with your shop!! :smile:

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!

15 Dec 2008, 2:06 PM
#9
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

Good luck with your shop!! :smile:
Thank you, and one more question about this stocking of coming products.

I have people emailing asking what time it's going to stock!

I'm assuming that the way we have it now would make that product become available at 12am on the 17th correct? What timezone is that? And, the biggie.......Is there ANY way to set the TIME that it will go live?

Me + Zen = Truehart Treasures

15 Dec 2008, 3:14 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

What I gave you said Coming Soon - Count Down X Days

You would have to check what you used of the code to see why you are not getting the days ...

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!

15 Dec 2008, 3:56 PM
#11
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

What I gave you said Coming Soon - Count Down X Days

You would have to check what you used of the code to see why you are not getting the days ...

Oh, I'm sorry....It IS showing the days =) Right now it says Coming Soon!! Count Down: -2 Days!

What they want to know is an exact TIME (ie: 8am CST) or whatever so they can be in the store waiting for it to go live AT THAT TIME and purchase it! LOL!

Me + Zen = Truehart Treasures

15 Dec 2008, 4:45 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

Midnight ... your server time ... you can manually type that in as it really isn't a calculation ... :smile:

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!

15 Dec 2008, 4:48 PM
#13
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

Midnight ... your server time ... you can manually type that in as it really isn't a calculation ... :smile:

So there isn't any way to configure it to change that time? I got an email from one gal saying she didn't care if it was midnight or not, she'd be there waiting....but still.....I'd like to make it more easily available for as many people as possible:smile:

Me + Zen = Truehart Treasures

15 Dec 2008, 5:05 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

      $return_button = 'Coming Soon!!<br />Count Down to Midnight in: ' . date_diff($button_check->fields['products_date_available'], date('Y-m-d H:i:s', time())) . ' Days!';

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!

15 Dec 2008, 5:18 PM
#15
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

  $return_button = 'Coming Soon!!<br />Count Down to Midnight in: ' . date_diff($button_check->fields['products_date_available'], date('Y-m-d H:i:s', time())) . ' Days!';

So instead of the *Count Down to Midnight in:*, could I put *Count Down to 8:00am in:*  or something like that?

Me + Zen = Truehart Treasures

15 Dec 2008, 5:21 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

It is just text ... you can make it:
Fred is bringing it at 7:03am ...

But it comes at midnight based on Server 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!]
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!

15 Dec 2008, 5:33 PM
#17
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

It is just text ... you can make it:
Fred is bringing it at 7:03am ...

But it comes at midnight based on Server time ...

:lol: no Fred's here!

Ok, just to make sure I'm understanding correctly....I can put whatever I want there, BUT it will go live at 12 midnight no matter what. I can't change THAT?

Like, I can't make it become available at 8am CST on the 17th, instead of midnight on the 17th?

Me + Zen = Truehart Treasures

15 Dec 2008, 5:47 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coming Products question....

Custom coding would be required ...

And right now, that is a lot more than tossing out a few lines of code for this ...

This is not impossible to do by any means, I just cannot afford the time to hunt these coding changes down for you ... :smile:

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!

15 Dec 2008, 5:53 PM
#19
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Ajeh:

Custom coding would be required ...

And right now, that is a lot more than tossing out a few lines of code for this ...

This is not impossible to do by any means, I just cannot afford the time to hunt these coding changes down for you ... :smile:

No problem! Midnight it will be. Thank you:smile:

Me + Zen = Truehart Treasures

16 Dec 2008, 10:52 PM
#20
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Coming Products question....

Sorry, one more question! What does this part of the code mean?

date('Y-m-d H:i:s', time())) When I quickly looked at it before, I only really "noticed the H and S part and thought it would start counting down hours and minutes at some point. THEN I looked again and realized that there was an I in there, and realized that Ummmmm.....that's NOT hours, minutes, and seconds:blush:

What DOES that mean?

Me + Zen = Truehart Treasures