Print Page | Close Window

Add to gift registry from product page?

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Suggestions
Forum Description: ProductCart Suggestions
URL: https://forum.productcart.com/forum_posts.asp?TID=2342
Printed Date: 05-May-2024 at 2:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add to gift registry from product page?
Posted By: nurvserver
Subject: Add to gift registry from product page?
Date Posted: 12-January-2009 at 11:36pm
Anyone have any ideas on adding product to the gift registry from the viewPrd.asp page? It is very unintuitive to have to add the product to the shopping cart and then add it to the registry. I can get it to work fine except for products that are apparel products. The apparel product will only post the main product not the specified sub product.

My really ghetto working workaround for adding to the registry page that is NOT an apparel sub product goes like this. (make backups before proceeding)
1. From the pc folder duplicate the instPrd.asp and rename it to instPrd2.asp
2. In instPrd2.asp find the line response.redirect "viewCart.asp" replace it with response.redirect "viewcart2.asp"
3. From the pc folder duplicate viewCart.asp and rename it to viewCart2.asp
4. In viewCart2.asp find the line <% call closedb() %> and right before it add a redirect <%response.redirect "ggg_addtoGR.asp"%>
5. Upload both instPrd2.asp and viewCart2.asp
5. You then need an add to registry button on the product page. Open the file viewPrdCode.asp. I added it around the add to cart button, you can find the add to cart button by searching for the line <input alt="Add" src="<%=pcv_tmpNewPath%><%=rslayout("addtocart")%>" type="image" name="add" border="0" id="submit" />.
Add this code where you would like your add to registry button:
<a href="instPrd2.asp?idproduct=<%=pIdProduct%>&?apparel=1"><img src="<%=RSlayout("AddToRegistry")%>" border="0" %></a>
6. Upload the new viewPrdCode.asp page.

This will essentially add the product to the cart and then re-direct to add it to a registry. You of course need to be logged in as a user to do this. You can see it in action here bbraithwaite.com. I hope this helps somebody. If somebody in return can help me with this same process except with the use of apparel sub products that would be awesome. Even if you have some hypotheticals please post your ideas.



Replies:
Posted By: ProductCart
Date Posted: 13-January-2009 at 6:30am
The http://www.earlyimpact.com/forum/forum_posts.asp?TID=2343&PID=8284 - same question has been posted here , so we will close this thread and leave the other one open. We will also log this as a feature request.

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software



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