mrweb Posted January 16, 2017 Share Posted January 16, 2017 Hi i need to add a product to cart by external link with prestashop 1.6 is it possible ? thanks for your help Link to comment Share on other sites More sharing options...
vekia Posted January 16, 2017 Share Posted January 16, 2017 yes, just copy-paste "add to cart" button url when someone will click on it, link will redirect to cart page with product inside. Link to comment Share on other sites More sharing options...
mrweb Posted January 18, 2017 Author Share Posted January 18, 2017 Hi vekia there is no url , its a <form> with <input name="id_product" value="100" id="product_page_product_id" type="hidden"> Link to comment Share on other sites More sharing options...
massimomassimo Posted June 14, 2017 Share Posted June 14, 2017 Right click (for example if you use Chrome) on the "add to cart" button and click "copy link address". It will work. Link to comment Share on other sites More sharing options...
Logical IT Posted August 9, 2017 Share Posted August 9, 2017 (edited) Yes, it's possible, even if you are using a form. Here is an example: https://mywebsite.com/cart?id_product=10&add=1&id_product_attribute=88 Edited August 9, 2017 by Logical IT (see edit history) 1 Link to comment Share on other sites More sharing options...
massimomassimo Posted September 17, 2017 Share Posted September 17, 2017 (edited) 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)! Edited September 23, 2017 by massimomassimo (see edit history) Link to comment Share on other sites More sharing options...
Kodarth Posted April 28, 2021 Share Posted April 28, 2021 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 More sharing options...
smrkiki1 Posted September 9, 2021 Share Posted September 9, 2021 free plugin from prestashop "Buy button lite" is work correct you can select product from the list and next step you can select from GO TO CART or CHECK OUT Link to comment Share on other sites More sharing options...
Nickovitshj Posted November 24, 2021 Share Posted November 24, 2021 @massimomassimo & @Kodarth, Thanks for the solutions both have posted. Following is the query I have attached to my URL which is working: index.php?controller=cart?add=1&id_product=720&qty=50 Does anyone know how I can remove existing products in the cart? Is there a parameter we can use for this? Kind Regards, Nick Link to comment Share on other sites More sharing options...
idnovate.com Posted July 18, 2023 Share Posted July 18, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now