Zen Cart Logo
Forums / General Questions / stock options - levels

stock options - levels

Locked

Views: 1,997

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
28 Aug 2006, 11:01 PM
#1
drmad avatar

drmad

New Zenner

Join Date:
Apr 2006
Posts:
5
Plugin Contributions:
0

stock options - levels

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

29 Aug 2006, 1:31 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: stock options - levels

a quick hack:

/includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php
around line 121 you have:```

<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>

change to:

<?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