Jump to content

add product to cart by external link


mrweb

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)
Link to comment
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?

Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...
  • 1 year later...
On 4/28/2021 at 11:57 AM, Kodarth said:

  

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?

You can do it with your module https://www.idnovate.com/en/1408-share-and-save-cart-create-cart-from-url.html

Link to comment
Share on other sites

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
×
×
  • Create New...