Print Page | Close Window

Add to Cart Link

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=2211
Printed Date: 21-May-2025 at 5:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add to Cart Link
Posted By: ericpollard
Subject: Add to Cart Link
Date Posted: 02-December-2008 at 10:42pm
How do you figure out the URL for adding a product to the cart?  I would like to create a product page that on an article page and then have a link to add the product to cart.  I would like to do this for a few reasons, because of the layout of the page, I don't want it to look like a standard product page, and the article pages will be under Joomla rather than created in ProductCart.

Anyways, how do I find this link or recreate it?

Thanks!



Replies:
Posted By: Hamish
Date Posted: 03-December-2008 at 12:49am
Hi Eric,
    Take a look at http://wiki.earlyimpact.com/widgets/productcart_ecommerce_widget


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Matt
Date Posted: 03-December-2008 at 12:53am
The widget is very helpful. If you need better design control try this:

http://wiki.earlyimpact.com/how_to/add_to_cart?s[]=instprd


Posted By: ericpollard
Date Posted: 04-December-2008 at 1:06pm
Matt, I went with the second link you sent me and it seems to work except I am receiving an error saying cookies are not enabled...

Event though they definitely are. 

I have an incomplete version of the page with an add to car button on it.  Would you mind testing it and maybe sharing any suggestions you may have to avoid 'message 207'?


Posted By: Matt
Date Posted: 04-December-2008 at 1:29pm
eric.  that is curious. I can take a look.


Posted By: Matt
Date Posted: 04-December-2008 at 1:30pm
send me your link


Posted By: ericpollard
Date Posted: 04-December-2008 at 1:58pm
Oops.  http://site476.mysite4now.net/ericpollard/site1/sis/index.php?option=com_content&view=article&id=21&Itemid=24


Posted By: Matt
Date Posted: 04-December-2008 at 4:35pm
You removed the name of the field "idproduct".   You are also using the product id from the sample code.

You should have this:
<input type="hidden" name="idproduct" value="id_of_your_product">



Posted By: ericpollard
Date Posted: 04-December-2008 at 4:40pm
ah, duh


Posted By: ericpollard
Date Posted: 04-December-2008 at 4:40pm
thanks, btw



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