Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 22 replies, has 2 voices.

Last updated by Milosz Jaksik 2 years, 12 months ago.

Assisted by: Bruno Kos.

Author Posts
June 23, 2022 at 12:49 pm #11530005

Milosz Jaksik

The site is using full site theme Frost.
I modified woocommerce template "Product catalog":
I created 2 columns:
the first one contains:
- a Template Part with one paragraph text 'tttt' and 2 shortcodes for filtering products (BERocket Products filters plugin)
- a second paragraph text 'tttt' (for testing purposes)
and the second one contains Woocommerce Products Grid Block.

All attributes are translated.
Filters are also translated.
Pages and Template-Parts too.
The main language is English.

The issue is on the shop page: hidden link
When I switch language to French or any other language I see:
- no filter widgets nor paragraphs with 'tttt'
- that background modifications are gone (there should be light gray instead of white)
What shall I do in order to have those filters appeared on shop pages?

June 23, 2022 at 1:23 pm #11530273
Milosz Jaksik

Another thing is in WooCommerce Multilingual & Multicurrency. Under Attributes panel I have "Wheels" attribute. The terms are: 20", 24", 28", 29". When I translated these I just simply clicked "Copy to all languages" link uder each term. When I returned to that page I discovered new termc created from other langs. Have a look at he image.
Now if I want to add translations manually - I cannot!
What happened?

New threads created by Bruno Kos and linked to this one are listed below:

https://wpml.org/forums/topic/split-full-site-theme-woocommerce-shortcode-filters/

Screenshot 2022-06-23 at 15-21-36 WooCommerce Multilingual & Multicurrency ‹ Patrol Bikes — WordPress.png
June 24, 2022 at 8:23 am #11536339

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

Would you be willing to provide me with WordPress credentials so I could investigate the issue directly?

And tell me where in the backend did you modify shop page - was it on the page directly or through theme templates perhaps?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

Regards,
Bruno Kos

June 24, 2022 at 12:22 pm #11537725

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Can you translate the template like this?
hidden link

So that “Product Catalog” template from hidden link.

Regards,
Bruno Kos

June 27, 2022 at 8:36 am #11547845

Milosz Jaksik

Dear Bruno,
I have just opened my latop - I do not work over the weekends. I will post me reply to your question in an hour or so.

June 27, 2022 at 8:49 am #11547873

Milosz Jaksik

Bruno,
I already translated that temlate the way you posted.
What I did was as follows:
1. I modified the "Product catalogue" template using FSE from here hidden link in order to create left column for product filters.
2. I watched your movie and in Translation Management I added that template to translation basket.
3. Then I took that translation job and translated it.

June 27, 2022 at 12:26 pm #11551209

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Can I ask you the following? In order to debug this issue, I will install Duplicator plugin, will create packages and will try this on my localhost and escalate further to 2nd tier.

I will exclude all the media files, etc, to keep the package minimal.

https://wpml.org/faq/provide-supporters-copy-site/

Let me know if this is OK with you.

Regards,
Bruno Kos

June 27, 2022 at 12:50 pm #11551385

Milosz Jaksik

yes, go on with Duplicator.

June 27, 2022 at 2:51 pm #11552597

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Duplicator gets stuck for me at 59.0%, are you able to create it?

Regards,
Bruno Kos

June 27, 2022 at 6:26 pm #11554023

Milosz Jaksik

sure,
I created one without "upld/2022" folder and another with uploads only.

June 28, 2022 at 7:52 am #11556787

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

Regards,
Bruno Kos

June 28, 2022 at 8:09 am #11556863

Milosz Jaksik

ok, thanks.

June 30, 2022 at 6:21 am #11572349

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Can you try this?

- make sure you have a complete database backup of site
- run these queries in database:

DELETE FROM `ptrlbks_icl_translations` WHERE `element_type` = 'tax_wp_theme';
UPDATE ptrlbks_posts SET post_name = 'filters-desktop-mobile-2' WHERE post_name = 'filters-desktop-mobile-2-2';

- then translate the template part and actual template again (or just update original and update/resave translation)

Has it helped?

Regards,
Bruno Kos

June 30, 2022 at 8:30 am #11573323

Milosz Jaksik

Hello Bruno,
after running your queries in db I translated/edited template part "Filters Desktop / Mobile" and "Product catalogue" template. Here are the results:

  • Filters appeared only in French
  • in French when I click a filter I got: Notice: Undefined index: taxonomy in /home/redesign/domains/new-patrol.redesigned.pl/public_html/cnt/plgs/woocommerce-ajax-filters/includes/url-parse.php on line 726
  • in German and Italian I got this notice:<br>
    "Das Template-Teil wurde gelöscht oder ist nicht verfügbar: filters-desktop-mobile-2"
    (The template part has been deleted or is not available: filters-desktop-mobile-2 )
  • The same goes to "Product category" template. In English it is ok: hidden link but try to switch the languages.

I don't know about this Undefined index: taxonomy... thing but perhaps creating new template part could solve the other problem?

June 30, 2022 at 12:40 pm #11576193

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Do you have a staging website where we can see this and make some changes in database (it may be needed)? We don't want to do it on your production site.

Let me know!

Regards,
Bruno Kos