Print Page | Close Window

Display Quantity in product listing

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=3895
Printed Date: 03-March-2025 at 10:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Display Quantity in product listing
Posted By: dragoncrown
Subject: Display Quantity in product listing
Date Posted: 02-August-2010 at 10:05pm
Is it possible to show the quantity in stock on the product listing summary? I have set the setting at the category level to "In a list (Add multiple to cart)". I would like for it to show the quantity in stock.
 
Is that a setting or will I need to modify code?
 
Sean



Replies:
Posted By: Greg Dinger
Date Posted: 02-August-2010 at 10:35pm
Custom code.  Look at the product table and identify the inventory field, then add that field to the query on viewcategories.asp.  Once that is done, just alter pcShowProductM.asp for the new column.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: dragoncrown
Date Posted: 02-August-2010 at 11:00pm
Thanks!
 
good news is that the products.stock column is already a part of the query. Now to get it added to pcShowProductM.asp


Posted By: dragoncrown
Date Posted: 02-August-2010 at 11:13pm
Any idea where the column header comes from? Found the field to add (pStock) but trying to find where to a new column header.


Posted By: Greg Dinger
Date Posted: 02-August-2010 at 11:16pm
it's in the main category page, before the include to the M file.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: dragoncrown
Date Posted: 02-August-2010 at 11:29pm
Ok awesome found them but does anyone know what this code refers to:
 
dictLanguage.Item(Session("language")&"_viewCat_P_8
 
That is was looks like where the column names come from
 
Sean


Posted By: Greg Dinger
Date Posted: 02-August-2010 at 11:33pm
includes/languages.asp

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: dragoncrown
Date Posted: 02-August-2010 at 11:36pm
BTW, thanks for the assist. In less than one hour after your post, I am done! It works great. Thanks again for the help. If anyone wants my edits, let me know. I can post them somewhere.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net