Arkadia Posted July 2, 2012 Share Posted July 2, 2012 (edited) Here's how you add an add to cart button to the topseller block tpl file...which doesn't come with an add to cart button by default... I tried a few things and the button just wasn't working right. This is probably obvious to experienced Prestashop users but can be annoying for a newbie to figure out. Anyway, maybe this post will help some other prestashop newbie. Use code like this: <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a> It applies to prestashop 1.4.9.0 blockbestsellers-home.txt Edited November 12, 2012 by Arkadia (see edit history) 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