mtawolf Posted May 12, 2013 Posted May 12, 2013 I want to remove the add to cart button, witch TPL file do i need to edit? Thanks for your help guys Share this post Link to post Share on other sites More sharing options...
PascalVG Posted May 12, 2013 Posted May 12, 2013 Edit file /themes/<your them folder>/product-list.tpl: find: {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only'}</span>{/if} {/if} (* <-- add this "comment-start" [size=4] {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}[/size] {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a> {else} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a> {/if} {else} <span class="exclusive"><span></span>{l s='Add to cart'}</span><br /> {/if} {/if} *) <-- add this "comment-end" <a class="button lnk_view" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l That should do the trick. pascal Share this post Link to post Share on other sites More sharing options...
mtawolf Posted June 9, 2013 Posted June 9, 2013 Thank you pascal You did help me and it solved my problem. Share this post Link to post Share on other sites More sharing options...
PascalVG Posted June 9, 2013 Posted June 9, 2013 Glad I could help :-) Share this post Link to post Share on other sites More sharing options...
vekia Posted June 9, 2013 Posted June 9, 2013 marked as [solved] Share this post Link to post Share on other sites More sharing options...
mtawolf Posted June 9, 2013 Posted June 9, 2013 Thanks PrestaShop Superstar I was just about to do it. Share this post Link to post 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