VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: naoko15 on May 30, 2013, 18:25:35 PM

Title: Different product images for different languages
Post by: naoko15 on May 30, 2013, 18:25:35 PM
Hello, how can i  upload different images for different languages? I have Spanish-default and English, but selecting each language when editing images at the product administration results in one image ovewriting the other.

I have J2.5 and VM 20.0.20b

Thanks!
Title: Re: Different product images for different languages
Post by: K&K media production on May 30, 2013, 22:05:36 PM
go to your product -> images

add a image for the first language and select the language on the bottom of the image settings

save

add another image for the second language and select the language on the bottom of the image settings

save
Title: Re: Different product images for different languages
Post by: naoko15 on May 31, 2013, 10:12:43 AM
Thank you fro your reply!

Here is what i do:

* I choose Spanish and upload the Spanish image
* Replace thumb with a thumb image for Spanish
* I choose English and upload the English image
* Replace thumb with a thumb image for English

The result is both the Spanish and English thumbs are the same image, looks like the English version overrides the Spanish one.

What am i doing wrong? Thanks again!
Title: Re: Different product images for different languages
Post by: K&K media production on June 01, 2013, 02:08:50 AM
1. upload your image -> save
2. select the language -> save
Title: Re: Different product images for different languages
Post by: naoko15 on June 01, 2013, 15:05:14 PM
That is exactly what i do. My problem is with the thumbnails, i can't get two different thumbnails for each language...they overwrite each other  :-\
Title: Re: Different product images for different languages
Post by: K&K media production on June 01, 2013, 16:38:54 PM
Each image has one thumb und you can select the language for the image. You need one image for each language and the thumb from this image will also be used. The language setting is for the normal image and his thumb.
Title: Re: Different product images for different languages
Post by: naoko15 on June 01, 2013, 18:59:50 PM
It works as each image automatically generates their own thumbnail, but i need a different thumb for each image. Can this be done?
Title: Re: Different product images for different languages
Post by: K&K media production on June 01, 2013, 19:18:56 PM
I can replace it without problems. Each image has the right thumb. Maybe if it is only on your product detail site, the shown thumbs are not the thumbnails but the normal resized images. Look with firebug if it is the thumb or the normal image.
Title: Re: Different product images for different languages
Post by: naoko15 on June 02, 2013, 10:16:27 AM
When i look at one thumb with Firebug i see this:

<img border="0" class="featuredProductImage" alt="san_miguel_l6" src="/images/stories/virtuemart/product/resized/san_miguel_l_small.jpg">

Is the resized image then?
Title: Re: Different product images for different languages
Post by: K&K media production on June 02, 2013, 14:25:08 PM
Yes it is the thumb.

I don't know what is wrong in your case.

Do you have a link to your site?
Title: Re: Different product images for different languages
Post by: K&K media production on June 02, 2013, 19:20:32 PM
Quote
1. upload your image -> save
2. select the language -> save

The image language has nothing to do with the language selection on the first tab of product settings. Go to the images tab and there is for each image on the bottom a select box for the language.

Your Example Cruzcampo: Spanish and English have the same big and thumb image ... where is your example with different images?

Btw. Your site is not working right. If I choose products on spanish site there are 404-errors
Title: Re: Different product images for different languages
Post by: naoko15 on June 02, 2013, 22:37:05 PM
Quote from: kkmediaproduction on June 02, 2013, 19:20:32 PM
Quote
1. upload your image -> save
2. select the language -> save

The image language has nothing to do with the language selection on the first tab of product settings. Go to the images tab and there is for each image on the bottom a select box for the language.

Your Example Cruzcampo: Spanish and English have the same big and thumb image ... where is your example with different images?

Btw. Your site is not working right. If I choose products on spanish site there are 404-errors

Yes, I do the language selection in the image tab. I know Spanish and English have the same image...that's my problem, i can't get Spanish and English to have their own corresponding images. When i upload them they ovewrite each other when i upload the second language thumb.

The only thing that works for me is uploading the Spanish image, replacing its thumb and uploading the English image, letting its resized image without replacing it with its corresponding thumb.

I can't see any 404 issues, it works for me. Would you be so kind to point me out where they are?

Thanks!
Title: Re: Different product images for different languages
Post by: K&K media production on June 02, 2013, 23:21:22 PM
404 error:

Quote
Product detail in Spanish:

http://goo.gl/eTMIP


add 2 images without language selection to your product ... so that the product has 2 images
change the thumb of the images

send me a link to the product with this 2 images
Title: Re: Different product images for different languages
Post by: naoko15 on June 03, 2013, 11:49:29 AM
And here is the product settings

(sorry for the double post, but the forum doesn't allow to upload more than fou images in one post)

Title: Re: Different product images for different languages
Post by: K&K media production on June 03, 2013, 22:46:16 PM
i see two different thumbs
Title: Re: Different product images for different languages
Post by: naoko15 on June 04, 2013, 10:15:58 AM
Yes, but the second thumb is not displayed in the frontend. When uploading images for two languages, It shows the same thumb for both. Also, uploading the second image replaces the first one. 
Title: Re: Different product images for different languages
Post by: K&K media production on June 05, 2013, 11:38:56 AM
Quotesend me a link to the product with this 2 images
Title: Re: Different product images for different languages
Post by: naoko15 on June 05, 2013, 11:48:23 AM
Of course, it's here in a previous post, maybe you didn't see it:

http://forum.virtuemart.net/index.php?topic=116063.msg391321#msg391321

So, i've given up on having two different big images, but i still need two different thumbs. How can this be done? I'm going crazy : /

What i do --> upload big image
Choose Spanish - save - replace thumb - save
Choose English - save - replace thumb in english - save

The results is that the second thumbnail replaces the first one, so i get two exact thumbs for both languages. 
Title: Re: Different product images for different languages
Post by: jjk on June 05, 2013, 18:47:54 PM
I just tested different product images and thumbnails for two languages and it's working on my local test site.
I would suggest that you use language specific filenames for both the product images and the thumbnails.
For example:
Product images: mahou-clasica-en.jpg and mahou-clasica-es.jpg
Thumbnails: mahou-clasica-en-thumb.jpg and mahou-clasica-es-thumb.jpg

Make shure, that the urls under the 'product images' tab are pointing to the -es product image and -es thumb for the spanish image and similar for the english image.
Also check if each of the two images has a language assigned to it.

It might be easier for you to use the Joomla media manager to upload language specific product images and thumbs.
If you rename images, don't forget to click on 'Synchronize media' in VirtueMart configuration, so that VM stores the names in the database.
Title: Re: Different product images for different languages
Post by: K&K media production on June 05, 2013, 22:20:43 PM
ok it seems you make it wrong

more in detail step by step:

1. upload the first image -> save
2. replace thumb of the first image -> save
3. choose language of first image -> save
4. upload second image -> save
5. on the top you can see the two images. each has on the right bottom corner a icon to load the details to edit it -> click the icon of the second image to load the details for editing
6. replace the thumb of the second image -> save
7. click the editing icon of the second image and choose the language -> save

Title: Re: Different product images for different languages
Post by: naoko15 on June 06, 2013, 19:12:37 PM
Ah ok, i was doing it wrong! my bad , i'm sorry very much. It's working for me now.

Thank you very much for your help!!