PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Adding products to cart via URL

2 replies to this topic
#1
Browser

    PrestaShop Newbie

  • Members
  • Pip
  • 0 posts
Is there is a way so, if one of my customers, is browsing through another part of my site. e.g. a wordpress blog, they can click a link, which would automatically add a product to cart, and forward them to the products page or the checkout.

#2
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
You could try adding a link like the following:


http://www.yoursite.com/cart.php?id_product=1&qty=1


Change the id_product parameter to the id of the product you want added and the qty parameter to the quantity of product you want added.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#3
lukas25

    PrestaShop Newbie

  • Members
  • Pip
  • 6 posts
Do you know how to add also a voucher code on the same URL?

http://www.yoursite....product=1&qty=1 + some code to add voucher/coupon code at the same time