ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - need add to cart button each product category view
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

need add to cart button each product category view

 Post Reply Post Reply
Author
Message
Chris Hadden View Drop Down
Groupie
Groupie


Joined: 23-January-2013
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote Chris Hadden Quote  Post ReplyReply Direct Link To This Post Topic: need add to cart button each product category view
    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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 26-September-2013 at 3:04pm
may we have a link to one of your categories please?
Back to Top
Chris Hadden View Drop Down
Groupie
Groupie


Joined: 23-January-2013
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote Chris Hadden Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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.
 
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:
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.