shaka Posted June 1, 2010 Share Posted June 1, 2010 bonjour,je m'adresse aux pros du php et du .tplJe souhaiterai afficher mes "accessoires" à la suite de la tab "en savoir plus" afin que mes clients n'aient pas à cliquer sur la tabs accessoires pour les voir.Je dois modifier le product.tpl mais n'y arrive pas. Link to comment Share on other sites More sharing options...
shaka Posted June 7, 2010 Author Share Posted June 7, 2010 alors toujours personne pour changer ce petit bout de code dans .product.tpl ? Link to comment Share on other sites More sharing options...
Divine Posted June 7, 2010 Share Posted June 7, 2010 Bonjour,Peut-être que ce post pourrait te fournir un début de réponse:http://www.prestashop.com/forums/viewthread/56861/discussion_generale/rsolu_commentaires_sur_la_page_produit Link to comment Share on other sites More sharing options...
Bouh Posted June 7, 2010 Share Posted June 7, 2010 Toujours dans product.tpl et à adapter après : <!-- description and features --> {if $product->description || $features || $accessories || $HOOK_PRODUCT_TAB || $attachments} {if $product->description}{l s='More info'}{/if} {if $features}{l s='Data sheet'}{/if} {if $attachments}{l s='Download'}{/if} {$HOOK_PRODUCT_TAB} {if $product->description} <!-- full description --> {$product->description} {/if} {if $features} <!-- product's features --> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}{if isset($accessories) AND $accessories}{l s='Accessories'}{/if} {/foreach} {/if} {if $attachments} {foreach from=$attachments item=attachment} {$attachment.name|escape:'htmlall':'UTF-8'} {$attachment.description|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if isset($accessories) AND $accessories} <!-- accessories --> {foreach from=$accessories item=accessory name=accessories_list} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|truncate:22:'...'|escape:'htmlall':'UTF-8'} getImageLink($accessory.link_rewrite, $accessory.id_image, 'home')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" /> {$accessory.description_short|strip_tags|truncate:100:'...'} {displayWtPrice p=$accessory.price} {l s='View'} {l s='Add to cart'} {/foreach} {/if} {$HOOK_PRODUCT_TAB_CONTENT} {/if} Link to comment Share on other sites More sharing options...
Bouh Posted June 7, 2010 Share Posted June 7, 2010 Et tu peux meme meme description accessoire commentaire à la suite Link to comment Share on other sites More sharing options...
shaka Posted June 8, 2010 Author Share Posted June 8, 2010 J'ai inséré le code entre <!-- description and features --> et <!-- Customizable products -->... je me retrouve avec une page blanche. bizarre ! Link to comment Share on other sites More sharing options...
shaka Posted June 14, 2010 Author Share Posted June 14, 2010 je pourrai avoir l'intégralité du code product.tpl... je suis un peu perdu Link to comment Share on other sites More sharing options...
Bouh Posted June 14, 2010 Share Posted June 14, 2010 Contact moi par Mp je te renverais sa joint à ton mp ton fichier merci Link to comment Share on other sites More sharing options...
Bouh Posted June 16, 2010 Share Posted June 16, 2010 je te l'ai renvoyé par mp Link to comment Share on other sites More sharing options...
Bouh Posted June 16, 2010 Share Posted June 16, 2010 ps : code a adapter suivant votre thème ( ne pas copier coller mais essayer de comprendre les lignes modifs )Sinon page blanche 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