Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / How do I change the Number of Products message

How do I change the Number of Products message

Locked

Started by kjedwards on 13 Nov 2006, 7:50 AM · Views: 1,402

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Nov 2006, 7:50 AM
#1
kjedwards avatar

kjedwards

New Zenner

Join Date:
Nov 2006
Posts:
31
Plugin Contributions:
0

Post #1 by kjedwards

Hi

Is it possible to change the message displayed to customers regarding the number of items of a product available in stock?

I would like -

If there is 1 or more of a product in stock to show a message 'In stock'

If there is 0 in stock show a message 'Usually available within 7 days'

I am sure this is possible but I have no idea where to start.

Suggestions please...

Thanks

Kevin

19 Nov 2006, 4:48 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

You could edit the tpl_product_info_display.php

Approximately line 121 you see:

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

Change how that reads ...

NOTE: might make a function for this so that you can use it where ever else you might need the same thing to show ...

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!