Jump to content

[SOLVED] Different manufacturer logo according to language?


Rhobur

Recommended Posts

Hi,

I have an unusual situation such as I need to display for each shop's language a different logo of the same manufacturers.

To be clear, each manufacturer logo has a text which needs to be in the same language as the one selected by the visitor.

Any idea of how this could be accomplished ?

Best Regards,

Edited by Caprice (see edit history)
Link to comment
Share on other sites

Hi Caprice,

 

But I belive you could solve that by using {l s=''} inside the image code.

The manufacturer logo source would then be with the correct language extension, for example caprice_de.png.

 

I have just tested it, this is how it looks when I have selected "English" as language:

when-en.jpg

 

And when I have German:

when-de.jpg

 

 

The code:

<img src="/img/m/{$product->id_manufacturer}_{l s='EN'}.jpg" title=""/>

I translated EN to DE in the backoffice. Then I uploaded 1_EN.jpg and 1_DE.jpg to the manufacturer image folder.

 

(By the way, the text is not on top of the image, but in the image it self..)

 

Isn't this what you are aiming for?

 

 

Also a good weekend to you :)

Edited by Carlsen (see edit history)
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...