Jeaneve Posted November 18, 2010 Share Posted November 18, 2010 Does anyone knows if there is a module or an easy way to generate external html link for each of my products so that I can put "buy Now" or "add to cart" buttons on an external site?This would also require a "view cart" button as well on the external sites.Of course when a client click on these buttons he/she would be routed back to my presta shop cart.Thank You Link to comment Share on other sites More sharing options...
shokinro Posted November 18, 2010 Share Posted November 18, 2010 You can use following link http://your-store-site/cart.php?qty=1&id_product=11&add=1 goes quantity 1id_product=11 goes for product id 11add=1 goes for add to cartYou can try at this link which is link to my shophttp://ecochoiceshop.com/cart.php?qty=1&id_product=11&add=1 Link to comment Share on other sites More sharing options...
Jeaneve Posted November 18, 2010 Author Share Posted November 18, 2010 Thank You...this will work indeed! Link to comment Share on other sites More sharing options...
aftermarket Posted February 10, 2011 Share Posted February 10, 2011 How do you add product's with attributes this way?http://www.myshop.com/cart.php?qty=1&id_product=7&id_product_attribute=16&add=1Doesn't seem to work. Link to comment Share on other sites More sharing options...
shokinro Posted February 10, 2011 Share Posted February 10, 2011 Following link should work. You can try it, below is the test link to my demo site. http://expresscheckout.dyndns.org:8080/shop1323/cart.php?qty=1&id_product=1&id_product_attribute=29&add=1 But please be note: id_product_attribute is not the attribute id, it should comes from table ps_product_attribute.and if the user is already logged in to your site, then click link form above link, it may has following error1 error occurred: invalid token Link to comment Share on other sites More sharing options...
aftermarket Posted February 11, 2011 Share Posted February 11, 2011 Thanks! I was looking at my dev prestashop install for the attribute ID, but testing it on my real shop. So I ended up not getting it working because I was was using 2 different DB's for tests! Thanks for the help shokinro! Link to comment Share on other sites More sharing options...
shokinro Posted February 11, 2011 Share Posted February 11, 2011 You are welcome. This kind of mistake happen some time. It is good that you realized the error. Link to comment Share on other sites More sharing options...
LeGastronome Posted March 23, 2011 Share Posted March 23, 2011 Hi,Do you know if the following will work :In an javascript that will call 3 different URL to add 3 products by one click ? Link to comment Share on other sites More sharing options...
shokinro Posted March 23, 2011 Share Posted March 23, 2011 I think it should work, you can have a try. Link to comment Share on other sites More sharing options...
PrestaSupport Posted May 8, 2011 Share Posted May 8, 2011 Hello!What if i want a buy button to a product in a subcategory?I dont get it to work.For example i tried: for product id 32 in category id 7http://my-site.com/cart.php?qty=1&id_product=32&id_category=7&add=1am i missing something hereKind regards Peter Link to comment Share on other sites More sharing options...
Recommended Posts