Post by domivin » Thu May 26, 2016 1:14 pm

Hello
I have my web site in FR and US
For the description all is OK, I get add text in FR or US, but for the UPC or ISBN, I would like to have in 2 different language.

Actually, he file accept only on language.

Is it available in 2 language, because its file that I add on product page and when the customer choice FR, the file must be come in FR and if the customer choice US, this file must be come in US

Thanks for help

Michel

Version 2.1.0.1
Hébergement LWS
Template default modified
Multimerch modified


New member

Posts

Joined
Thu Nov 13, 2014 3:06 am

Post by IP_CAM » Fri May 27, 2016 6:52 am

In EVERY LANGUAGE:
...\catalog\language\whatever-language\product\product.php
usually, some Content like shown below exists, just waiting, to be rewritten, to match your Wishes:

Code: Select all

$_['text_search']       = 'whatever';
$_['text_brand']        = 'whatever';
$_['text_manufacturer'] = 'whatever';
$_['text_model']        = 'whatever';
$_['text_sku']          = 'whatever';
$_['text_upc']          = 'whatever';
$_['text_ean']          = 'whatever';
$_['text_jan']          = 'whatever';
$_['text_isbn']         = 'whatever';
$_['text_mpn']          = 'whatever';
as well as in a similarly named ADMIN Language file:
...\admin\language\whatever-language\catalog\product.php

Or then, just use a Tool, to manage your Translations:
Translate Mate free, OC v.2.x:
http://www.opencart.com/index.php?route ... n_id=23098
...
Image

Good Luck ;)
Ernie

I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by agatha65 » Fri May 27, 2016 7:48 am

By default these fields are designed to add some code that is same for all languages.
If you want to use them for something custom that has to be brought to the product page you have to add some language verification in the product page controller.
For example use UPC for EN and ISBN for FR and check the current language in the controller to choose which one to display. Or add your custom data comma separated and in the product controller you can process it as an array.

Print Version for Product Page and Product Compare Page | Rich Snippets | Facebook Open Graph Meta Tags | Information pages in top menu | Multi-Language Banners, Sliders and Carousels
Image


User avatar
Active Member

Posts

Joined
Fri Mar 16, 2012 10:18 am
Location - Canada, QC
Who is online

Users browsing this forum: No registered users and 45 guests