![]() |
Add to Cart in ViewCategories.asp |
Post Reply ![]() |
Page 12> |
Author | ||
fidjiti ![]() Senior Member ![]() Joined: 30-November-2006 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 29-May-2007 at 10:02pm |
|
Does anyone know how to add the "add to cart" buttons to each product by the "more details" link area in the category pages before actually going to the product pages.
I don't need the qty box, just the add to cart button which will add a default number (1) of that item to their cart. I downloaded the file which is found on the developers page which talks about putting an add to cart button anywhere: http://www.earlyimpact.com/productcart/support/developers.as p But I don't know what I am supposed to do with it because there isn't a read-me file included. :( I would like my category pages: http://www.fidjiti.com/shop/pc/viewCategories.asp?idCategory =311 to have the add to cart button like this one below: http://www.thesimpleleaf.com/ec/pc/viewcat_p.asp?idCategory= 3 Maybe there is a simple code I can add to the viewCategories.asp file. Please help if you can. Thanks!!!! |
||
Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :) |
||
![]() |
||
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
|
For the horizontal layout, you need to modify: pcShowProductH.asp
and change it to:
Make sure to change "im g src" to "img src". For some reason the editor is adding extra spaces. Here is the web site we made the modification to: Edited by netprofits - 30-May-2007 at 7:32am |
||
![]() |
||
fidjiti ![]() Senior Member ![]() Joined: 30-November-2006 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
|
Netprofits, you my friend, are a genius! I couldn't look like a pro without you. :) Thanks for the fabulous help.
Oh and you'll have to delete the space between: "&idpr oduct=<%" so the word product would be 1 word. Check mine out: http://www.fidjiti.com/shop/pc/viewCategories.asp?idCategory =3 (I still need to edit the stock button images) |
||
Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :) |
||
![]() |
||
jenbeast ![]() Newbie ![]() Joined: 30-October-2006 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
|
Hi-I wonder if you could help me, too, netprofits? I'm not sure how to apply
the above code to my particular product layout: http://www.valentinopads.com/productcart/pc/viewCategories.a sp? idCategory=96 I would also like to put an 'add to cart' button next to each product-your help is greatly appreciated! |
||
![]() |
||
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
|
You really shouldn't have an add to cart button for each product in that view as it is expecting customers to enter quantities for one or more products and then click the Add To Cart button at the bottom. You would probably want to use the Display items vertically (list view) which uses pcShowProductP.asp. Find the table cell where you want the add to cart button and just insert this code: <a href="instPrd.asp?idproduct=<%=pIdProduct%>"><im g src="<%=rslayout("addtocart")%>"></a> |
||
![]() |
||
mrondael ![]() Newbie ![]() Joined: 03-May-2007 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
|
Hello NetProfits I'm using ProductCart 3.x I like the vertical view with the add to cart button but would like to customize this view to include simple options. How would I modify the page. Thanks! |
||
![]() |
||
dwatch ![]() Newbie ![]() Joined: 26-February-2006 Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
|
Netprofits, how can we implement the check to the add to cart code so that if the product has required options it displays an alert and advises the customer to hit more details and select the opitons? Edited by dwatch - 23-July-2007 at 12:07pm |
||
![]() |
||
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
|
For these last 2 posts...It would be a lot of work to tweak any of the category views to show product options. You would need to look in the viewPrd.asp, viewPrdCode.asp and probably other files to see what all is needed to work with product options. If you are not an experience developer, I wouldn't recommend this. There are a lot of variables set in different places that would all need to be set correctly in the category display pages to handle options. In the instPrd.asp (which adds an item to the cart) you would need to find the code in viewPrdCode.asp (most likely) that checks for product options and then add that code to instprd.asp when trying to add an item. In the end...if you have products with options, it is easier to just not show the add to cart button on category pages. |
||
![]() |
||
dwatch ![]() Newbie ![]() Joined: 26-February-2006 Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
|
hey netprofits, can you provide quote such as: if the product has options, is apparell or is BTO, then dont display the add to cart button for that product |
||
![]() |
||
Matt ![]() Moderator Group ![]() Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
![]() ![]() ![]() ![]() ![]() |
|
This feature has been added to ProductCart v3.1. The "Add to Cart" button will also be hidden when there are required options, fields, or the product is Apparel. There is no definitive release date for 3.1, though we are expecting sometime in August.
|
||
![]() |
Post Reply ![]() |
Page 12> |
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |