Zen Cart Logo
Forums / Managing Customers and Orders / How can I display 'Units in Stock' in the Cart

How can I display 'Units in Stock' in the Cart

Locked

Views: 1,390

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Sep 2008, 12:59 AM
#1
misspot avatar

misspot

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

How can I display 'Units in Stock' in the Cart

I have searched the posts but everyone seems to want to remove the 'Units in stock'...I want to go the other way and even display them in the cart.

I have the "units in stock" showing on my product pages and I have set checkout so that a customer cannot checkout if they have ordered more units than I have.

If a customer has ordered to many of an item an error message displays in the cart requesting them to change the quantity ordered but it does't tell them how many are in stock. To find this out they need to go back to the product page.

Is it possible to add the "Units in Stock" in the cart so the customer can update their cart without returning to the product page?

web: https://www.highlandspapercraft.com

Thanks.

misspot

13 Sep 2008, 6:58 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How can I display 'Units in Stock' in the Cart

A quick way is to use the function in the functions_lookups.php for:
zen_get_products_stock

and you can then display the quantity of a Product anywhere that you need it ...

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!