Gabriel Tanski
Gabriel Tanski

Reputation: 172

How to translate product shopping experience texts?

I have been trying to find out whether one can translate the content from Shopping experience product pages.

I have found the relevant documentation for Categories but I see no mention of the corresponding product translations.

It seems that this should be a thing that is translatable in the settings where you select the per-product configs for the blocks

I have tried the following:

  1. Assign a layout to a product and set its value to "ENGLISH BANNER" in English enter image description here
  2. Switch to German (the "ENGLISH BANNER" is still there) enter image description here
  3. Replace it with "GERMAN BANNER". enter image description here
  4. Switch to English again and check the results. enter image description here

Am I doing something wrong? Is this a bug? The Shopware version is 6.4.10. Is there a non-hacky way to translate the content from per-product for product pages in Shopping experiences?

The shop's default language is English if this is relevant.

Upvotes: 0

Views: 101

Answers (1)

Alex
Alex

Reputation: 35008

I can reproduce this in higher Shopware versions (6.4.16.0)

The data is stored at product_translation in the slot_config field, so it looks like this should be translatable in the long run but obviously it's not yet implemented and/or a bug.

You might want to create a request at https://issues.shopware.com/

As a not-to-hacky workaround you might add your translated data to the product entity itself using a custom field. This custom field can be inserted via twig {{ customFields.my_test_field }} in the product and the translation works for such custom fields.

Upvotes: 1

Related Questions