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