Jump to content

add product to cart by external link


mrweb
 Share

Recommended Posts

  • 4 months later...
  • 1 month later...
  • 1 month later...

Does work only if the customer is not log in:

https://yourwebsite.com/prestashopfolderinstallation/index.php?controller=cart?add=1&id_product=60

(Add product with id = 60 quantity: 1)

If the customer is log in does not work.

Any update?

Oh, I discovered that if you disable security token for front end it works (see attachment)!

 

 

post-482239-0-86528400-1506138818_thumb.jpg

Edited by massimomassimo (see edit history)

Share this post


Link to post
Share on other sites

  • 3 years later...

  

Hello

Its working for one product perfectly.

Eg

site/index.php?controller=cart?add=1&id_product=203&qty=5

Adds product with id 203 - quantity 5.

My problem is that i need to add more products per one link. Is there any posibility? Eg:

site/index.php?controller=cart?add=1&id_product=203&qty=5&add=2&id_product=293&qty=1&add=3&id_product=112&qty=19

That is not working. Any ideas? or modules what can do that?

Share this post


Link to post
Share on other sites

  • 4 months later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More