The following (untested) is more likely to do the job(assuming that your site is entirely in English)<?php if ($flag_show_product_info_quantity == 1 && $products_quantity >= 1) echo 'Available' ?>
The following (untested) is more likely to do the job(assuming that your site is entirely in English)<?php if ($flag_show_product_info_quantity == 1 && $products_quantity >= 1) echo 'Available' ?>
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Hi! Thanks for ur help
I've found a solution in the while...
But i miss the part<?php
if (zen_get_products_stock((int)$_GET['products_id']) >0) {
$zc_stock_level_image = '<span class="Disponibile">Disponibile</span>';
}
elseif (zen_get_products_stock((int)$_GET['products_id']) <0) {
$zc_stock_level_image = '<span class="Arrivo">Esaurito</span>';
}
else {
$zc_stock_level_image = '<span class="Esaurito">In arrivo</span>';
}
echo '<b class="Stock">Stock Level: </b>' . $zc_stock_level_image;
?>
Where should I add it?if ($flag_show_product_info_quantity == 1 ...........
Thanks a lot for your help :)
Assuming your product type is Product-General, then look inside:
/includes/templates/template_default/templates/tpl_product_info_display.php.
Make changes to the file according to Kuroi's instructions as follows.
Delete the line:
Replace with:PHP Code:<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
Do remember to use the overrides for your changes. You may also want to look at the following mod if you want the same functionality to apply to your product listings as well.PHP Code:<?php if ($flag_show_product_info_quantity == 1 && $products_quantity >= 1) echo '<li>Available</li>'; ?>
Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store