Namory Posted June 20, 2014 Share Posted June 20, 2014 Bonjour, Je souhaite ne pas afficher le contenu du pack que sur certains produits. J'ai essayé de trouver le module dans positions pour lui ajouter l’exception suivante : product&id_product=26 ou id_product=26 mais apparemment ça n'est pas un module au 1er sens du terme donc je ne le trouve pas. J'aurais donc aimé savoir si le code suivant (trouvé sur un autre topic) peut être modifié pour ne pas afficher le contenu du pack QUE sur certains produits. Modifier le fichier product.tpl dans le thème :Recherche le code suivant : <!-- left infos--> <div id="pb-left-column"> {if $product->description_short OR $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify">{$product->description_short}</div> {/if} {if $product->description} <p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p> {/if} {if $packItems|@count > 0} <h3>{l s='Pack content'}</h3> {foreach from=$packItems item=packItem} <div class="pack_content"> {$packItem.pack_quantity} x <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)}">{$packItem.name|escape:'htmlall':'UTF-8'}</a> <p>{$packItem.description_short}</p> </div> {/foreach} {/if} </div> {/if} Par celui là: <!-- left infos--> <div id="pb-left-column"> {if $product->description_short OR $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify">{$product->description_short}</div> {/if} {if $product->description} <p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p> {/if} </div> {/if} Merci Link to comment Share on other sites More sharing options...
Namory Posted July 17, 2014 Author Share Posted July 17, 2014 Une piste? 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