Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Show stock in product listing

Show stock in product listing

Views: 2,224

Results 1 to 6 of 6
22 Oct 2011, 8:42 PM
#1
vince_and_tigger avatar

vince_and_tigger

New Zenner

Join Date:
Oct 2011
Posts:
2
Plugin Contributions:
0

Show stock in product listing

Hi, my first posting, just getting my head round Zencart, seems to be going well.
Easy question I hope - when I list the products in the only category I have, currently the stock level does not show and I'd like it to please.
I'm selling course places so its important to have the number of places left on a given course, each course date is a separate product. If I click on any product for more info the stock shows up then but not in the product listing.
I think I've set all the right things and I have searched in the all the right places (I hope!) for answers but most peeps are asking to turn OFF the stock level! Clicking here takes u straight to it
Anyway, any help would be hugely appreciated,
Many thanks, Vince

22 Oct 2011, 9:11 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Show stock in product listing

There's a quantity setting in Admin - Configuration - Product Listing.

23 Oct 2011, 6:44 AM
#3
vince_and_tigger avatar

vince_and_tigger

New Zenner

Join Date:
Oct 2011
Posts:
2
Plugin Contributions:
0

Re: Show stock in product listing

Brilliant, thanks for that! I've changed the setting and it all works a treat, Have also slightly adjusted the wording in the product php and layout in the CSS.
In an ideal world I could have the stock quantity followed by the word "places" ie 7 places available. My PHP is a long way from being good enough for that, if I post the existing bit of code could someone advise on putting that bit of plain text after the variable please?
Many thanks - Vince

24 Oct 2011, 10:50 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Show stock in product listing

includes/languages/english/your_template/product_info.php

define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');

Edit the words in red.

28 Jan 2020, 1:56 AM
#5
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Re: Show stock in product listing

I tried to enable this and quantity is still not showing in listings

28 Jan 2020, 2:05 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Show stock in product listing

jmberman:

I tried to enable this and quantity is still not showing in listings
May be a template related problem. Please identify what has been attempted specifically, what template is involved, etc...