atiart Posted February 10, 2014 Share Posted February 10, 2014 Hallo, brauche Hilfe für die Logo Änderung! Das Logo soll sich nach Sprachauswahl auf die jeweilige Sprache angepasste Logo ändern! Habe Aktuell prestashop version 1.5.6.2 Danke im Voraus. Link to comment Share on other sites More sharing options...
BluTiGeS Posted February 10, 2014 Share Posted February 10, 2014 Hi, dazu kannst du dein tpl fil anpassen und mittels abfrage auch die logos tauschen {if $lang_iso=="de"} Deutsch {elseif $lang_iso=="en"} Englisch {/if} Link to comment Share on other sites More sharing options...
atiart Posted February 10, 2014 Author Share Posted February 10, 2014 Hallo BluTIGeS, Danke für die schnelles Antworten. Wo genau wird es eingefügt? Bitte Entschuldige mein Frage, aber bin leider kein Programmierer und habe Probleme um alles zu verstehen! Danke dir. Link to comment Share on other sites More sharing options...
Gurkcity Posted February 11, 2014 Share Posted February 11, 2014 (edited) \themes\default\header.tpl Zeile 79 austauschen mit {if $lang_iso=="de"} <img class="logo" src="{$img_dir}logo_de.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/> {elseif $lang_iso=="en"} <img class="logo" src="{$img_dir}logo_en.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/> {/if} Probier mal bitte, ob es funktioniert. {$img_dir} ist der relative Pfad vom PrestaShop-Root zum img-Theme-Verzeichnis Viele Grüße Chris Edited February 11, 2014 by Gurkcity (see edit history) Link to comment Share on other sites More sharing options...
atiart Posted February 11, 2014 Author Share Posted February 11, 2014 Hallo Chris, wenn ich das einfüge und code austausche wird die Seite nicht gezeigt! Es wird nicht blanke seite gezeigt! Gruß Atilla Link to comment Share on other sites More sharing options...
Gurkcity Posted February 11, 2014 Share Posted February 11, 2014 Pardon hatte die $ im Variablennamen vergessen ($img_dir): {if $lang_iso=="de"} <img class="logo" src="{$img_dir}logo_de.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/> {elseif $lang_iso=="en"} <img class="logo" src="{$img_dir}logo_en.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/> {/if} 1 Link to comment Share on other sites More sharing options...
atiart Posted February 11, 2014 Author Share Posted February 11, 2014 Danke! Jetzt funktioniert es wie gewollt. Gruß Atilla 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