Altair Posted December 11, 2011 Share Posted December 11, 2011 I would like to remove the "add to cart" button everywhere. I have followed the following thread : http://www.prestashop.com/forums/topic/20581-solved-how-to-remove-the-add-to-cart-bottom/ with no success. The code in version 1.4.6.2 is different compared to the code shown in the above mentioned thread. This is the code I am commenting out: in product-list.tpl {* {if ($product.allow_oosp || $product.quantity > 0)} <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'}">{l s='Add to cart'}</a> {else} <span class="exclusive">{l s='Add to cart'}</span> {/if} {/if} *} homefeatured.tpl {*{if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} *} Why does this not seem to work? Any suggestions please!!! Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 12, 2011 Share Posted December 12, 2011 Hello! Did you re-compile the templates? Link to comment Share on other sites More sharing options...
Altair Posted December 12, 2011 Author Share Posted December 12, 2011 Hi, Thanks for the reply. What do you mean with re-compile templates. I have no experience with php, so apology for the stupid question. Link to comment Share on other sites More sharing options...
Mr S Posted December 12, 2011 Share Posted December 12, 2011 In the Back-Office --> Preferences -> Performance -> Smarty (tab) Force compile: YES Cache: NO Once you save it open you shop page. Than you should change your seting back to: Force compile: NO Cache: YES 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