cyberpunk Posted September 13, 2014 Share Posted September 13, 2014 Hello I'm trying to replace the Visa button in this image to an "Add to cart" button. Here is the code: http://pastebin.com/mH0wrLi9 I've tried copying some Add to cart button html snippets from other pages but can't make it work. Any ideas? Link to comment Share on other sites More sharing options...
cyberpunk Posted September 13, 2014 Author Share Posted September 13, 2014 I've managed to find the link for adding Products to cart <a class="ajax_add_to_cart_button exclusive btn_add_cart" rel="ajax_id_product_{$bestseller.id_product|intval}" href="{$link->getPageLink('cart',false, NULL,"add&id_product={$bestseller.id_product|intval}", false)} title="{ls='Add tocart'}"> <span>{l s='Add tocart'}</span> </a> But when I click on the button I get a message says there is "No Product is found. The produt is not available anymore". Any hints? Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2014 Share Posted September 13, 2014 it's enough to post topic one time http://www.prestashop.com/forums/topic/358774-creating-add-to-cart-button/ Link to comment Share on other sites More sharing options...
Recommended Posts