kaball Posted October 30, 2013 Share Posted October 30, 2013 Bonjour à tous Débutant avec prestashop j'aimerai masquer le bouton "Ajouter au panier" sur mes fiches produits tout en conservant le prix affiché des articles. J'ai parcouru le forum ici http://www.prestashop.com/forums/topic/53655-comment-enlever-le-bouton-ajouter-au-panier/ et suivi le post de ould.abeidy qui conseille de supprimer ds le product-list.tpl du thème les lignes : {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}<a rel="ajax_id_product_{$product.id_product|intval}" href="{$base_dir}cart.php?add&id;_product={$product.id_product|intval}&token;={$static_token}">{l s='Add to cart'}</a>{else}<span>{l s='Add to cart'}</span>{/if} Le pb est que ces lignes sauf erreur de ma part n'apparaissent pas ds le tpl de mon thème {if isset($products)} <!-- Products list --> <div class="block_content"> {assign var='liHeight' value=340} {assign var='nbItemsPerLine' value=3} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul id="product_list" class="clear" style="height:100%;"> {foreach from=$products item=product name=products} <li class="ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}item{/if} clearfix"> {if isset($product.on_sale) && $product.on_sale }<span class="on_sale">{l s='Sale'}</span>{/if} {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if} <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.name|escape:html:'UTF-8'}" /></a> <div> <h5><a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:22:'...'|escape:'htmlall':'UTF-8'}</a></h5> <a class="lnk_more" href="{$product.link}" title="{l s='View' mod='productscategory'}"></a> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <p class="price_container"> <span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> </p> {else} <div style="height:21px;"></div> {/if} </div> </li> {/foreach} </ul> </div> <!-- /Products list --> {/if} Comment faire et ou faire cette modification? Merci de m'aider y Link to comment Share on other sites More sharing options...
kaball Posted October 31, 2013 Author Share Posted October 31, 2013 Personne pour m'aider? Link to comment Share on other sites More sharing options...
kaball Posted November 1, 2013 Author Share Posted November 1, 2013 Vraiment personne pour me filer un coup de main ? 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