What code did you use to do this?
The code on the other link looks to be for the Product Listing and not the Product _info page ...
What code did you use to do this?
The code on the other link looks to be for the Product Listing and not the Product _info page ...
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!
i used the code from the link lol silly me
so is ther any way to get it to work on the product info page?
Same concept but the products_id is based on (int)$_GET['products_id'] ...![]()
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!
ok now you lost me lol
im not good with code
i can alter bits here and there but i get lost on anything complicated or anything with smarty tags lol![]()
Put the final $zc_stock_level_image where you want to see the quantity and the dot ...PHP Code:<?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;
?>
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!
ok lets see how bad i can break my site lol
here goes..............
well that started well cant even fine the right file to edit![]()
where is the file located???????
Ok it works on the product info page. How do you get it to work on the product listing page. I tried everything.
I just want it to show the icons on the page the green, yellow, red icons. i want it to show between the price and more info button?
Can be seen here where i want to place it: http://dealz-r-us.com/index.php?main...ex&cPath=1_2_3
Thank you
The code works great! How can I show the dot without the number in stock. Just the image. I must be a little slow but I can't figure it out.