Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Display "Product is in Stock" instead of units?

Display "Product is in Stock" instead of units?

Locked
This thread is locked. New replies are disabled.
6 Jul 2006, 2:11 PM
#1
corys8646 avatar

corys8646

New Zenner

Join Date:
Oct 2005
Posts:
6
Plugin Contributions:
0

Post #1 by corys8646

Hello,
I did some searching and not finding a solution to this...

what I would like is it to not show how many units I have in stock but rather just show that it is in stock, but if the product is out of stock (less than 1) it will show different text, but still allow the customer to buy it.

basically this:
if quantity is more than 0 show Product in Stock ready to ship
if quantity is less than 1 show, Product out of stock, will ship in 3-5 days

is there an easy way to implement this? I don't really want people to know how deep my stock levels are.

thanks!
cory

6 Jul 2006, 2:21 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

I am guessing you mean on the tpl_products_info_default.php

You can copy that to your overrides directory ...

Then customize the line for:

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

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!

8 Jul 2006, 12:20 PM
#3
gustafr avatar

gustafr

New Zenner

Join Date:
May 2006
Posts:
26
Plugin Contributions:
0

Post #3 by gustafr

I need the same function but I'm not really comfortable with editing the code. Can anyone give me a tip what i should edit the line to if i want to leave out the "units" but show the TEXT_PRODUCT_QUANTITY text.
I would really appreciate the help.
/Gustaf