Forums / Templates, Stylesheets, Page Layout / product page stock level indicator

product page stock level indicator

Locked

Views: 1,376

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
1 Oct 2008, 3:28 AM
#1
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

product page stock level indicator

Here i have a code to show stock levels like a stop light. I'm trying to put it in the product listing page between the price and more info button. But i'm having no luck.

Can someone please help me and tell me where i should insert this so it will show up in that spot.

Been trying for hours. Either it would show up at the very top, or not show at all, or give me a blank page when i try to insert it.

Were i would like for it to go can be seen here on this page again between the price and more info button:

http://dealz-r-us.com/index.php?main_page=index&cPath=1_2_3

Here is the code i'm trying to insert:

 <?php 
if (zen_get_products_stock((int)$_GET['products_id']) >1) { 
$zc_stock_level_image = '' . $products_quantity . zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', '', 10, 10) . ''; 
} 

elseif (zen_get_products_stock((int)$_GET['products_id']) <1) { 
$zc_stock_level_image = '' . $products_quantity . zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_red.gif', '', 10, 10) . ''; 
} 

else { 
$zc_stock_level_image = '' . $products_quantity . zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_yellow.gif', '', 10, 10) . ''; 
} 
echo 'I SEE ' . $zc_stock_level_image; 
?>  
```Can someone please give me some help!!!