Home › Forums › WoodMart support forum › Layout Translate for product Archive
Layout Translate for product Archive
- This topic has 15 replies, 2 voices, and was last updated 2 years ago by
Elise Noromit.
-
AuthorPosts
-
February 22, 2023 at 4:26 pm #445429
Cioppi88ParticipantHi,
I’m using WPML to translate my website.
I created a custom layout for product archive.
Now if you switch languange you can see that product loop shows twice.
Take a look after footer of this page: https://wordpress-885114-3068548.cloudwaysapps.com/en/boutique/
I just set custom fields: wd_layout_type and wd_layout_conditions to Copy in WPML settings.February 22, 2023 at 5:09 pm #445451
Cioppi88ParticipantFixed thanks
February 22, 2023 at 5:34 pm #445460
Cioppi88ParticipantSorry but it seems it doesn’t work on attribute page like this:
https://wordpress-885114-3068548.cloudwaysapps.com/en/giardino-segreto/
I try different tecnique:
1 – create unique template with multiple condition (Product Archive + Product Attribute and select the attribute I want)
2 create multiple layout one for all archive I need (1 template for Product Archive and 1 template for Attribute)It works on category translated but not on attribute
Attachments:
You must be logged in to view attached files.February 23, 2023 at 11:51 am #445653
Cioppi88ParticipantPlease update here, cause I need to go live with website.
February 23, 2023 at 7:48 pm #445828
Cioppi88ParticipantAnother error on custom attribute.
Italian language: https://wordpress-885114-3068548.cloudwaysapps.com/boutique/
English: https://wordpress-885114-3068548.cloudwaysapps.com/en/boutique/Always created using your layout functionality.
As you can see it doens’t take the main template, moreover the loop still happear twice.
My settings of WPML in attachmentAttachments:
You must be logged in to view attached files.February 23, 2023 at 8:22 pm #445843
Cioppi88ParticipantI contacted WPML support but the issue shown up with elementor + woodmart layout + WooCommerce Multilingual & Multicurrency.
The problem is maybe releated to elementor and woodmart layout
February 25, 2023 at 2:22 am #446164
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
February 25, 2023 at 3:28 am #446177
Cioppi88ParticipantSent
February 26, 2023 at 5:38 am #446374
Elise NoromitMemberHello,
You have not enabled Layouts for translation: https://gyazo.com/21f65c9f66288eb20516ec38f3bb1d8a
I have enabled it. Please translate the layout as you translate a page or post and delete the duplicated layout Archivio Prodotti.
Let us know if the problem remains.
Best Regards
February 26, 2023 at 11:18 am #446397
Cioppi88ParticipantI Just tryed even in this method.
No changes. Take a look here -> https://wordpress-885114-3068548.cloudwaysapps.com/en/christmas/February 27, 2023 at 3:29 pm #446724
Cioppi88ParticipantHi any update?
did you try to login to my backend and fix the problem? If I disable WooCommerce Multilingual & Multicurrency it works fine. Moreover I see that infinite scrolling doesn’t work on Search Result page event if I customize itFebruary 27, 2023 at 7:50 pm #446817
Elise NoromitMemberHello,
Please provide FTP access, and insert the access into the Private content below the message area. We will take a closer look at the case.
Best Regards
February 27, 2023 at 8:09 pm #446823
Cioppi88ParticipantHere you are
March 1, 2023 at 3:19 am #447236
Elise NoromitMemberHello,
Please add this custom code to the functions.php of the child theme, let us know if the problem remains.
use XTS\Modules\Layouts\Shop_Archive; add_action( 'init', function () { remove_filter( 'template_include', array( Shop_Archive::get_instance(), 'override_template' ), 20 ); add_filter( 'template_include', array( Shop_Archive::get_instance(), 'override_template' ), 1000 ); }, 100);
Best Regards
March 1, 2023 at 10:35 am #447319
Cioppi88ParticipantWorks thank you. I created a search result layout but I don’t understand why infinite scrolling for pagination doesn’t works:
https://wordpress-885114-3068548.cloudwaysapps.com/?s=200&post_type=productMarch 2, 2023 at 4:08 am #447564
Elise NoromitMemberHello,
Unfortunately, the search result page does not inherit all the confirmations set in the Theme Settings. This is a special page and default pagination is possible.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register