Radiorog Posted September 20, 2015 Share Posted September 20, 2015 Hello. I'm struggling with configuring PrestaShop, and can't find any help on this: My site has a number of pages, and I'd like to put individual 'Add to Cart' and 'View cart' buttons on those other pages as well as the store, so visitors can order products from any page on the site. I'm hoping there's some code from the store page that can be duplicated on the other pages to do this. Any help is greatly appreciated! Thaks so much. RadioRog Link to comment Share on other sites More sharing options...
shacker Posted September 23, 2015 Share Posted September 23, 2015 check the add to cart button code in product-lsit.tpl <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="1"> <span>{l s='Add to cart'}</span> </a> change the {$product.id_product|intval} for the id of the product that you want to add 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