Page 1 of 1

Language UPC / ISBN

Posted: Thu May 26, 2016 1:14 pm
by domivin
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

Re: Language UPC / ISBN

Posted: Fri May 27, 2016 6:52 am
by IP_CAM
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

Re: Language UPC / ISBN

Posted: Fri May 27, 2016 7:48 am
by agatha65
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.