Forums / General Questions / Different images of a product for different languages?

Different images of a product for different languages?

Locked

Views: 1,842

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
6 Jan 2007, 5:55 AM
#1
jdl avatar

jdl

New Zenner

Join Date:
May 2006
Posts:
59
Plugin Contributions:
0

Different images of a product for different languages?

Hi,

We've added free podcasts to our site to teach Spanish and English. We sell a language guide in Spanish/English (it's one product that contains both languages). If the user has selected 'Spanish' as their language when shopping at our site, then I'd like to display the image of the guide that goes with the 'Por Fin Aprende Ingles' podcasts. In contrast, if the user is shopping in English, then I want to display the image for the guide that goes with the 'Finally Learn Spanish' podcasts.

I've read Linda's guide on adding more than one image but I don't know if there's an easy way to display the image associated with a product depending on the shopper's language?

Thanks,
jdl

6 Jan 2007, 6:01 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Different images of a product for different languages?

images based on language is not built into Zen Cart for Products ...

You would have to do quite a bit of customization for that to work ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Jan 2007, 7:30 AM
#3
jdl avatar

jdl

New Zenner

Join Date:
May 2006
Posts:
59
Plugin Contributions:
0

Re: Different images of a product for different languages?

Thanks for your quick reply!

jdl

25 Feb 2007, 7:00 AM
#4
baschwar avatar

baschwar

New Zenner

Join Date:
Apr 2006
Posts:
44
Plugin Contributions:
0

Re: Different images of a product for different languages?

Ajeh:

images based on language is not built into Zen Cart for Products ...

You would have to do quite a bit of customization for that to work ...

What about multi-lingual sideboxes? Possible? Where would you tie in to the language that is selected to trigger a spanish sidebox instead of English?

--
Brad Schwartz <baschwar at baschwar dot com>
http://www.baschwar.com/

25 Feb 2007, 2:31 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Different images of a product for different languages?

If you change the language ... it affects the sideboxes languages too ...

I am not quite sure what it isn't doing for you that you need? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Feb 2007, 3:29 PM
#6
baschwar avatar

baschwar

New Zenner

Join Date:
Apr 2006
Posts:
44
Plugin Contributions:
0

Re: Different images of a product for different languages?

Hi,
I neglected to include that I've created two custom sideboxes. :(

Should that work with some tweaking or ?

Thanks,
Brad

--
Brad Schwartz <baschwar at baschwar dot com>
http://www.baschwar.com/

25 Feb 2007, 4:01 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Different images of a product for different languages?

If you follow the pattern of the sideboxes and language files and have everything cloned from one language to the other things should work ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Feb 2007, 7:39 AM
#8
baschwar avatar

baschwar

New Zenner

Join Date:
Apr 2006
Posts:
44
Plugin Contributions:
0

Re: Different images of a product for different languages?

Where do I override a sidebox?

/includes/templates/custom/sideboxes/spanish/

or

/includes/templates/custom/spansih/sideboxes/

I'm confused. :(

Thanks,

Brad

--
Brad Schwartz <baschwar at baschwar dot com>
http://www.baschwar.com/

16 Jul 2007, 1:48 PM
#9
arjuna avatar

arjuna

New Zenner

Join Date:
Jun 2007
Location:
Cologne, Germany
Posts:
8
Plugin Contributions:
0

Re: Different images of a product for different languages?

I'm very excited because I think I got a solution!!! :smile:
I sell DVDs that have a different covers in English and German so I need 2 different pictures for each product.

I just changed the Image directory in includes/configure.php #13 into

define('DIR_WS_IMAGES', $_GET[language].'/images/');
```then I created two directories called <zc-home>/de/images and <zc-home>/en/images

Maybe there is a better way to do that, but this one is very quick!
I would like to use the words "german" and "english" instead but I could not find the names of the variables for them. I would appreciate if you tell me! 

I have almost no experience with PHP and am very new to Zen Cart but just tried to understand the logic.:clap:

maybe there will be some other things I need to change as well (that I'm not seeing now), so I appreciate your help...

Zencart 1.3.7 new install, Linux, Hosting 2.0, PHP 4.x, MySQL 4.1
English bookshop: https://www.openskypress.com/zencart
German bookshop: https://www.openskypress.com/shop

16 Jul 2007, 2:27 PM
#10
arjuna avatar

arjuna

New Zenner

Join Date:
Jun 2007
Location:
Cologne, Germany
Posts:
8
Plugin Contributions:
0

Re: Different images of a product for different languages?

my problem is that the popup to enlarge the pictures doesn't work any more. I'm looking for the javascript file to edit it. Where is it?
Who has a tip?
Thanks

Zencart 1.3.7 new install, Linux, Hosting 2.0, PHP 4.x, MySQL 4.1
English bookshop: https://www.openskypress.com/zencart
German bookshop: https://www.openskypress.com/shop