Ricsca Posted March 11, 2012 Share Posted March 11, 2012 Qualcuno mi sa dire se c'è un modo per non permettere di far comparire il tasto compra quando si vedono i prodotti di una categoria ma? Vorrei che il tasto compra comparisse solo quando si vede il dettaglio di un prodotto. Grazie 1000 Link to comment Share on other sites More sharing options...
ciroco05 Posted March 11, 2012 Share Posted March 11, 2012 Ciao, devi editare il tuo file tpl :product-list.tpl commentando (o eliminando) questo codice: {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} {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} righe da 47 a 53 (o simili) Ciroco05 Link to comment Share on other sites More sharing options...
Ricsca Posted March 12, 2012 Author Share Posted March 12, 2012 Perfetto, grazie 1000 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