Ticket #25725 - Creative elements (templates & pages) language selector

I installed the Alysum theme in a shop. My site has 5 different languages (ES, GB, MX, FR & PT). When creating new templates or pages from Creative Elements, I can’t find any option to choose the desired language for the page. Also, some of the Creative Elements Widgets are showing always it contents in english: (for example my acount, my favorites or the cart link widgets), and I can’t choose nor translate contents.

Moreover, I need to be able to have different page versions for different languages (and also differnet header, footer and so), but I can’t find any option to duplicate a template and translate it contents. Also, I can’t find any option to indicate the contents language when working with templates. Can you help me? Thanks in advance!

Attachments:

Comments

Fred 22 Aug 2024, 19:47

Hi, Dinamic Comunicación.
Yes, you can find Multilanguage video tutorial here https://alysum.promokit.eu/promokit/documentation/#page_builder

Dinamic Comunicación 23 Aug 2024, 09:49

Thanks for your help.

I watched the video tutorial. But there are some problems & questions about:

  1. The language→insert buttons from Creative Elements editor does nothing when editing a page or a text block.
  2. The "language" flag button appears when editing an "everywhere content" (for example, a front page), but not when creating/editing templates (for example, header&footer templates), so I don't know how to create a different header for every language.
  3. Some "widgets" or elements from creative elements editor remain always in English, regardless the language selected on the website. I'm talking about "My account" top widget & menu or "My favorites" or "Cart". I translated string from Alysum theme translations and every module where I found those literals (for example, at "Promokit AMP" module), but the texts remain in English at the front-end.
Fred 23 Aug 2024, 21:33

1. you have to create a template in English first (or any other language) then copy it, apply as a template for another language, and change all the text you need
2. Yes, right. You need to use "everywhere content". In Theme Settings select Hook "displayHeaderBuilder" and you will be able to assign a template from "everywhere content"
3. Some widgets require to be translated using native prestashop translation system. Try to use our translation catalog in case you don't know where to find a translation https://alysum.promokit.eu/promokit/documentation/translations/

Dinamic Comunicación 27 Aug 2024, 12:49

Hi again.

I'm a little confused. I created the main header & footer in one language. They are "content everywhere", and are inserted in displayHeaderBuilder & displayFooterBuilder hooks. But when trying to swap to another language from Creative Elements builder (lang button from left menu → choosing ES, for example), I get this error:

Sorry, the content area was not found in your page.
You must insert the selected module position (hook) in the current template, in order for CreativeElements to work on this page.

I'm completely lost, and I don't know how to deal with problem. :(

Fred 28 Aug 2024, 20:56

Hi, Dinamic Comunicación.
Please fill out all necessary fields in your profile https://support.promokit.eu/myprofile to access to your Back-office to let me see the issue

Dinamic Comunicación 29 Aug 2024, 09:30

Added data! You can access now to our development website. Feel free to make changes, this site is for development purposes only.

Fred 31 Aug 2024, 21:23

Try following fix, remove selected code → https://take.ms/sfnfW

Dinamic Comunicación 02 Sep 2024, 10:15

Hi! Thanks for you support.

But the solution you propose does nothing. Are you sure you linked the right image? I don't know how a modification in isCarousel() method will solve a problem with multiple languages management. ???

Anyway, I tried the solution you proposed, and my problem continues. I repeat the description of the problem:

I have some page parts created at "Content everywhere" sections (header, footer, index), in one single language (ES). I go to "Content everywhere" menu option, select one of this page parts (for example, "Header_general"), and when choosing any other language (for example, EN), I get this error:

Sorry, the content area was not found in your page.
You must insert the selected module position (hook) in the current template, in order for CreativeElements to work on this page.

The same happens if I edit the page with Creative Elementor and select any language different than "ES". So I can't create a different version of header, footer or even home page for every language. :(

Fred 02 Sep 2024, 18:14

I'm really sorry, but that was a comment for another ticket.
As for your issue, it's still in progress. It's looks very strange because displaying editor is not depending on a language. We trying to find out what's wrong

Dinamic Comunicación 04 Sep 2024, 08:53

Any news about this problem? The ticket has been opened for more than a week, I need to solve this as soon as posible, please…

Fred 04 Sep 2024, 09:00

That’s unique issue that is present in your store only. We are not able to reproduce it locally. Keep trying to find out what’s wrong

Dinamic Comunicación 05 Sep 2024, 12:37

I found it is a conflict with "Pretty URL" module (https://addons.prestashop.com/en/url-redirects/16633-pretty-url-seo-friendly-url-removes-ids-numbers.html). It is redirecting some Creative Elements ajax requests because its URL structure, and those 302 redirects causes the page builder error (and apparently it's not related to hooks, despite the error message it shows).

Thanks!

Fred 05 Sep 2024, 20:38

You are welcome