Hi
I have been searching the forum however I didn't find anything about my question.
I want to put the following levels on the stock of my products:
Normal Stock
Low Stock
Out of Stock
How do I make it happen?
Thanks in advance
Hi
I have been searching the forum however I didn't find anything about my question.
I want to put the following levels on the stock of my products:
Normal Stock
Low Stock
Out of Stock
How do I make it happen?
Thanks in advance
a quick hack:
/includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php
around line 121 you have:change to:Code:<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>and then add definitions to your product_info.php language (override) file for:Code:<?php $products_quantity_display = ($products_quantity > 0 ? ($products_quantity > 50 ? TEXT_IN_STOCK : TEXT_LOW_STOCK) : TEXT_OUT_OF_STOCK); ?> <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity_display . '</li>' : '') . "\n"; ?>
TEXT_IN_STOCK
TEXT_LOW_STOCK
TEXT_OUT_OF_STOCK
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.