Bernie Posted September 25, 2011 Share Posted September 25, 2011 Bonsoir, est-il possible de cacher (supprimer) les prix sur les accessoires des produits? Merci Link to comment Share on other sites More sharing options...
Atch Posted September 26, 2011 Share Posted September 26, 2011 Bonjour, il doit y avoir une option dans le back office car dans la source du tpl on a : {if $accessory.show_price AND } Mais je n'ai pas encore trouvé le bouton... Sinon en passant directement pas le fichier product.tpl (se trouvant dans le répertoire du theme), oui... Cherchez ce code, c'est dedans <li class="ajax_block_product {if $smarty.foreach.accessories_list.first}first_item{elseif $smarty.foreach.accessories_list.last}last_item{else}item{/if} product_accessories_description"> <h5><a href="{$accessoryLink|escape:'htmlall':'UTF-8'}">{$accessory.name|truncate:22:'...':true|escape:'htmlall':'UTF-8'}</a></h5> <div class="product_desc"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{$accessory.legend|escape:'htmlall':'UTF-8'}" class="product_image"><img src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /></a> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='More'}" class="product_description">{$accessory.description_short|strip_tags|truncate:70:'...'}</a> </div> <p class="product_accessories_price"> {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<span class="price">{if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}</span>{/if} <a class="button" href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> {if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <a class="exclusive button ajax_add_to_cart_button" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {else} <span class="exclusive">{l s='Add to cart'}</span> <span class="availability">{if (isset($accessory.quantity_all_versions) && $accessory.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}</span> {/if} </p> </li> V++ Atch Link to comment Share on other sites More sharing options...
Bernie Posted September 27, 2011 Author Share Posted September 27, 2011 Merci beaucoup, si je réussi, je mets résolu.. Salutation! Link to comment Share on other sites More sharing options...
Bernie Posted September 27, 2011 Author Share Posted September 27, 2011 J'ai l'impression que l'option cacher le prix existe mais dans la fiche produit. Si je coche ne pas afficher le prix, le prix disparaitra et je ne pourrai même pas acheter ce produit. Je voudrai que seuls les accessoires (les vignettes en dessous du produits) n'affichent pas les prix. Link to comment Share on other sites More sharing options...
Patric Posted September 28, 2011 Share Posted September 28, 2011 Topic déplacé dans la section "Intégration". Titre du topic modifié pour être plus explicite. 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