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 buttons 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="{l s='Add to cart'}"> <span>{l s='Add to cart'}</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 whre youre trying to use this code? what file you altered? Link to comment Share on other sites More sharing options...
cyberpunk Posted September 13, 2014 Author Share Posted September 13, 2014 whre youre trying to use this code? what file you altered? Its a custom file that is hooked in the the homepage/firstpage. Here is the code: http://pastebin.com/ppscPkvu Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2014 Share Posted September 13, 2014 and what is the contorller for this custom file? Link to comment Share on other sites More sharing options...
cyberpunk Posted September 13, 2014 Author Share Posted September 13, 2014 and what is the contorller for this custom file? Hmm I'm not sure. Where can I find this out? Link to comment Share on other sites More sharing options...
Recommended Posts