3 replies [Last post]
tech.gsr's picture
Offline
Joined: 06/22/2009
Juice: 16
Was this information Helpful?

Hi All,

we are using drupal 6 and ubercart a very powerful ecommerce module.

well we have setup every thing and it is working like a charm.

We want to create a custom Add to Cart Link. so for that we have used the following code after searching uber forum.

< a href="http://67.58.231.41/cart/add/e-p1_q1-ipaytoview?destination=/cart/checkout">Add to Cart

But this thing neither adding the product to cart nor it is redirecting to checkout page after clicking.

it is showing the page not found error and in url box it is showing "http://67.58.231.41/cart/add/e-p1_q1-ipaytoview?destination=/cart/checkout" this url.

Any help will be greate for us.

Thanks
GSR TECH

artatac's picture
Offline
Joined: 06/11/2009
Juice: 79
Re: Custom cart link

does just http://67.58.231.41/cart/add work or

http://67.58.231.41/

?!

Regards

Joe

tech.gsr's picture
Offline
Joined: 06/22/2009
Juice: 16
Hi

nothing is working.

according to cart link documentation the following code should work to add the product to cart and it should redirect to checkout page.

< a href="http://67.58.231.41/cart/add/e-p1_q1-ipaytoview?destination=/cart/checkout">Add to Cart < /a>

but neither it is adding the product to cart nor it is redirecting to the checkout page.

what we are missing ?

please guide us we are strucked here.

Thanks
GSR TECH

tech.gsr's picture
Offline
Joined: 06/22/2009
Juice: 16
Re: Hi

We got it. we were doing a very small mistake that is e-p1. instead of 1 there should be node id of product thats all it works like charm.