product option localization

merav tg asked on May 30, 2016 12:58

Hey

I want to create localization for the attribute product options in the product options application.

For example

in English: display name is Size and the drop down options are: Small, medium, Large.

I found the localization + button next to the display name, but if i want to localize the drop down list (Small, medium , Large) where do i add it? There is no icon!

Please advise,

Correct Answer

Zdeněk Cetkovský answered on May 31, 2016 10:37

Hi,

Petar is right that you can add the localization macro directly as the value in the simple Text box that is used for product option name field.

Moreover, it is actually possible to customize the form setup for Attribute-type product options to make the editing dialog use Localizable text box form control instead, which has the "+" icon for adding or managing resource (localization) strings, i.e. for localizing the value. You can do that by editing the E-Commerce module (in Modules app), SKU class (in Classes tab) and its alternative form "Option (attribute)", codename "UpdateAttributeOptionGeneral" (in Alternative forms tab).
There, in the Fields tab of the alternative form, choose SKUName field and change its Form control from Text box to Localizable text box and save the change. You may need to locate the control through "More items..." dialog in the dropdown list.
After this change, you will see the "+" button in the text box when editing a value, allowing you to easily add custom localization strings.

Please note, the expressions are localized according to the UI culture when you are in the administration, and according to the page culture when displayed in ShoppingCartItemSelector control in live site.

Hope this helps.
Regards,
Zdenek

0 votesVote for this answer Unmark Correct answer

Recent Answers


Petar Kozjak answered on May 30, 2016 17:15 (last edited on May 30, 2016 17:15)

Hi,

yes there is no localization icon, but you can add localization macro. Go to Localization and add new translation. Then add in production option macro with your key of that translation like this {$YOUKEYNAME$}. This will display translation.

More info about localization macros can be found here: https://docs.kentico.com/display/K8/Localizing+text+fields

0 votesVote for this answer Mark as a Correct answer

merav tg answered on March 2, 2017 13:16 (last edited on March 2, 2017 13:20)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.