Icarus Posted July 1, 2009 Share Posted July 1, 2009 Hi everybody,I am considering creating some special landing pages for specific product(s).I would like to format these pages nicely, and to add "Add to Cart" links, that when clicked, will go into the Presta product page, with the product in the mini cart.I noticed there is some hidden "token" value in the form, so was wondering - is what I want to do easily doable?TIA.EDIT:I mean, is this code sufficient to create an external "Add to Cart" button, or is the token needed: <form action="http://example.com/cart.php" method="post"> <!-- <input type="hidden" name="token" value="7888494ef727ab9e10984ccf6b618bae" /> --> <input type="hidden" name="id_product" value="87" id="product_page_product_id" /> <input type="hidden" name="add" value="1" /> <input type="hidden" name="id_product_attribute" id="idCombination" value="" /> <input type="hidden" name="qty" id="quantity_wanted" value="1" /> <input type="submit" name="Submit" value="Add to cart" /> </form> Link to comment Share on other sites More sharing options...
andries Posted May 21, 2010 Share Posted May 21, 2010 I am facing the same problem... but instead of using the form I am using curl to call the script "cart.php".I use the Tools::getToken(true) to grab the token ID, but it simply creates a new cart, that is not linked to a customer.Is this Token linked with the current user? Or is it something completely else?Thanks in advanceAndries Link to comment Share on other sites More sharing options...
Jartisan Posted January 25, 2011 Share Posted January 25, 2011 I'd also like info.I need to have mutually exclusive options - i.e. size options depend on media selected.Easy to do on a web-page. Cannot find a way o do in prestashop.So thought I'd create my own product pages and send to info to presta shop? Link to comment Share on other sites More sharing options...
BWT Posted May 18, 2012 Share Posted May 18, 2012 Good question "Icarus" have you done any more testing on this idea? I also would love to be able to add the "Add to Cart" on external "buttons". If you have figured it out please post a step process here thanks Link to comment Share on other sites More sharing options...
Recommended Posts