Teamjr Posted May 20, 2008 Share Posted May 20, 2008 Hello, Currently in the buy now column in product listing when a product is zero quantity, it states "Product not available". I would like to also have it right under state the available date when product is arriving like in product info. Currently in product listing the code where Product not available is: break; // EOF Separate Pricing per Customer //start no button if quantity 0 case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; if ( $listing[$x]['products_quantity'] > 0 ){ $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; }else{ $lc_text = NON_ONLINE_ITEM; } break; And when I add below it breaks the site.: <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> <?php } else { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> <?php } ?> What is the correct way to add code. Thanks JR Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.