atipix Posted March 11, 2010 Share Posted March 11, 2010 Bonjour à tous,je souhaite afficher l'image du fabricant dans le module manufacturer,pour cela j'ai édité manufacturer.tpl où j'ai inséré :{if $product->manufacturer_name} getmanufacturerLink($product->id_manufacturer, $product_manufacturer->link_rewrite)}" title="{$product->manufacturer_name}">id}-medium.jpg" alt="{$product_manufacturer->name}" vspace="3px"/> {/if}Ça fonctionne tant que je ne suis pas logué.Dès que je me connecte en tant que client l'image fabricant ne s'affiche plus !Avez-vous une idée d'où vient l'erreur SVP ?Merci pour votre aide. Link to comment Share on other sites More sharing options...
Yoya Posted March 11, 2010 Share Posted March 11, 2010 Salut atipix,essayes plutot çà pour la page manufacturer.tpl: Pierre. Link to comment Share on other sites More sharing options...
atipix Posted March 12, 2010 Author Share Posted March 12, 2010 J'ai contourné le problème,en insérant une variable test dans la page product.tpl{if $product->manufacturer_name}{assign var='test' value=1}{/if}Et selon le retour de test on affiche ou pas l'image dans le bloc fabricant en rapport avec le produit affiché :{if $test} getmanufacturerLink($product->id_manufacturer, $product_manufacturer->link_rewrite)}" title="{$product->manufacturer_name}">id}-medium.jpg" alt="{$product_manufacturer->name}"/> {/if} Link to comment Share on other sites More sharing options...
atipix Posted March 15, 2010 Author Share Posted March 15, 2010 Non, en fait le bon code c'est :{if $product_manufacturer->id} getmanufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)}" title="{$product->manufacturer_name}">id}-medium.jpg" alt="{$product_manufacturer->name}" vspace="3px"/> {/if}CA MARCHE !!! 1 Link to comment Share on other sites More sharing options...
Yoya Posted March 15, 2010 Share Posted March 15, 2010 Si CA MARCHE !!! un petit RESOLU la prochaine fois -yoya971 Link to comment Share on other sites More sharing options...
atipix Posted March 16, 2010 Author Share Posted March 16, 2010 Et comment fait on ? Link to comment Share on other sites More sharing options...
rom Posted July 8, 2010 Share Posted July 8, 2010 Salut,Y a cela aussi : {if $product->manufacturer_name}getManufacturerLink($product->id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">id_manufacturer}-medium.jpg" alt="{$product->manufacturer_name}" title="{$product->manufacturer_name}">{/if}++ Link to comment Share on other sites More sharing options...
maofree Posted August 13, 2010 Share Posted August 13, 2010 HiSorry, but I can't speak in france.I have the same problem and I have tried your solution but it doesn't work with me.I have finished a module for block of manufacturers with slideshow, everything is ok but I don't know how to show the manufacturers's images. I have tried some solutions. My code in .tpl is: > </pre> <ul> {foreach from=$manufacturers item=manufacturer} getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}"> {$manufacturer.name|escape:'htmlall':'UTF-8'|truncate:40:'...'} getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}"> {$manufacturer.description|truncate:60:'...'} {/foreach} </ul> and the problem is with $manufacturer.image in Can you help me? (use the code's tag to post your solution)Thanks Link to comment Share on other sites More sharing options...
rom Posted August 13, 2010 Share Posted August 13, 2010 Hy, Don't use : {$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" for img... But use the $manufacturer.id_manufacturer for get your good name of your picture Bye Link to comment Share on other sites More sharing options...
maofree Posted August 13, 2010 Share Posted August 13, 2010 Thank you very muchIt works I will post the moduleIt will be similar to thishttp://www.prestashop.com/forums/viewthread/65638/programmazione_moduli_design_e_temi/modulo_blockspecialsslide_nuovo_blockspecials_con_15_effetti_di_transizione_con_modalita_random_sia_per_gli_effetti_che_per_le_offertebye 1 Link to comment Share on other sites More sharing options...
maofree Posted August 13, 2010 Share Posted August 13, 2010 Module herehttp://www.prestashop.com/forums/viewthread/66039/programmazione_moduli_design_e_temi/modulo_blockmanufacturerslide_nuovo_blockmanufacturer_con_15_effetti_di_transizione_con_modalita_random_sia_per_gli_effetti_che_per_i_produttori/ciaooooooooo 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