Print Page | Close Window

need add to cart button each product category view

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=5727
Printed Date: 20-February-2025 at 6:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: need add to cart button each product category view
Posted By: Chris Hadden
Subject: need add to cart button each product category view
Date Posted: 26-September-2013 at 2:43pm
My products are generally ordered on the category page. I currently use:
" Display items vertically (list view) with the ability to add multiple products to the cart in one step"

I want there to be an add to cart button besides each product. I am running PC 4.6


 help appreciated, thanks
Chris


-------------
Chris



Replies:
Posted By: Greg Dinger
Date Posted: 26-September-2013 at 3:04pm
may we have a link to one of your categories please?

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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: Chris Hadden
Date Posted: 28-September-2013 at 12:51pm
Here you go Greg.

http://www.jewelryfindings-online.com/store/pc/40x30-Lady-Cameos-c10.htm

Thanks


-------------
Chris


Posted By: Greg Dinger
Date Posted: 28-September-2013 at 1:19pm
That's a pretty simple change Chris. 

Here is the same category with an override flag set to cause the products to be listed in the mode where the ATC button and quantities do not appear.
http://www.jewelryfindings-online.com/store/pc/viewcategories.asp?idcategory=10&pagestyle=l" rel="nofollow - http://www.jewelryfindings-online.com/store/pc/viewcategories.asp?idcategory=10&pagestyle=l
 
The file pcShowProductL.asp can simply be altered to include the following, and you will get what you want.  Note that I have not tested these entries, and am doing this just from familiarity with the basics, but it should get you going in the right direction:
 
 - the open form tag
<form method="post" action="instPrd.asp" name="additem<%=pIdProduct%>" onsubmit="return checkproqty(document.additem.quantity);" class="pcForms">
 
 - an input field for the quantity:
<input class="qty" name="quantity" type="text">
 
 - a hidden input field to contain the idProduct value for each product
<input name="idProduct" type="hidden" value="<%=pIdProduct%>">
 
- the submit button:
<input name="submit" type="image" src="images/pc/bt_addCart_sm.gif" id="submit">
 
- the close form tag
</form>
 
We have taken that concept a step further, as shown at the following link, by introducing the ability to reflect the dropdown for product options on the category page:
http://www.cannonfuse.com/store/pc/Fuse-All-c2.htm" rel="nofollow - http://www.cannonfuse.com/store/pc/Fuse-All-c2.htm


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

Certified ProductCart Developer

Web Design/Development/Hosting

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



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