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.

Tagged: 

This topic contains 12 replies, has 4 voices.

Last updated by Dražen 1 year, 9 months ago.

Assisted by: Dražen.

Author Posts
August 30, 2023 at 12:21 pm #14313173

bartV-64

Hello, I've created a post earlier: https://wpml.org/forums/topic/translating-categories-and-attributes/

It's still not working. If I run an import with WP All Import, all the attributes and categories are being reset.

August 30, 2023 at 1:01 pm #14313961

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello again,

Please, take a look at my previous private reply and let us know when the import process is done. Thanks.

September 2, 2023 at 12:46 pm #14330247

bartV-64

As discussed, I will come back to you next week

September 6, 2023 at 12:38 pm #14352561

bartV-64

Hello Mateus,

How can I send a private message? I don't have the option.

We've setup a staging on our own platform. It's easier because we can create an exact copy. How can I privately send you the credentials?

September 6, 2023 at 1:08 pm #14352701

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

You should be able to see it now 🙂

September 7, 2023 at 6:36 am #14356213

Dražen
Supporter

Languages: English (English )

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

hello,

thanks for getting back and taking the time to set this up.

I have checked your conversation with my colleague, and I must say what you are trying to achieve is not possible and not how we recommend using WP All Import with WPML nor how it was intended.

- Mateus Getulio : The option to Auto-Create Terms should be disabled even for the default language import. You should already have all of your taxonomies, including attributes, created and translated before running the import.
Mateus Getulio : This might be related.
bartV-64 : But thats not possible, because all our product data is being imported every night. Sometimes new terms are added that day

In our docs, we clearly mention that taxonomies need to be created before the import and I am afraid that is a required step in order for the import to work correctly, otherwise issue will happen.

- https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/importing-multiple-languages-with-wp-all-import-and-wpml/#step-2-create-your-taxonomies-in-wordpress

I understand your side, but that is not how these plugins work. The best I can advise is to create an import for taxonomies first, make sure they are created and translated, and then import products.

Or hire a contractor to create a custom solution for you:

- https://wpml.org/contractors/

Hope you understand.

Regards,
Drazen

Screenshot_3.jpg
September 7, 2023 at 6:50 am #14356265

bartV-64

Hello Drazen,

Thank you for your response.

So the correct way of import will be:
- Disable Auto-create terms on product import
- Import taxonomies standalone
- Import categories standalone
- Import products

Repeat every night.

But for me it's not clear how to match the product import with the taxonomies? If we disable the auto-create terms, the system will not know what taxonomies a product has. Or do I miss something? Note: not all products has the same taxonomies.

September 7, 2023 at 7:03 am #14356317

Dražen
Supporter

Languages: English (English )

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

Hello,

yes, that would be the correct way, plus translated import also.

It will connect products with existing taxonomies just fine, that is how WP All Import works even without WPML.

For example, their docs say:

If you need to match with an existing attribute, you can use the attribute slug instead of the name, and WP All Import will attempt a direct match with any existing attribute with that slug.

You define the categories (name or better a slug) for each product in CSV file and add a dynamic tag from that file to the correct place in the import template. Same as you probably do for description or price or SKU.

Hope this helps.

Regards,
Drazen

September 7, 2023 at 11:40 am #14358943

bartV-64

You are saying: "If you need to match with an existing attribute, you can use the attribute slug instead of the name, and WP All Import will attempt a direct match with any existing attribute with that slug.".

But the attributes are added dynamically, what means there can be a new attribute in the attribute import. Do we need to add this attribute each time manually in the product import feed?

September 7, 2023 at 1:17 pm #14359825

Dražen
Supporter

Languages: English (English )

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

Hello,

you misunderstood me, You asked a question about how the will product be matched with the correct attribute/taxonomy and I shared a paragraph from WP All Import documentation, not WPML ones, to clear things up for you on how things work.

- hidden link

So you need to create attributes before you run import for variable products, You can create these attributes manually or via attribute import, however you prefer to.

- https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/importing-multiple-languages-with-wp-all-import-and-wpml/#step-2-create-your-taxonomies-in-wordpress

Hope this helps.

Regards,
Drazen

September 13, 2023 at 9:53 am #14388861

bartV-64

Hello,

I will come back to you as soon as possible.

September 13, 2023 at 12:30 pm #14390189

bartV-64

Hello,

It seems the attribute linking is now working correctly.

The translated categories are not being connected automatically. The categories are imported separately and are translated. If I use the default language as category name on the translated import, the default language is being used as category and not the translated one.

September 13, 2023 at 12:47 pm #14390339

Dražen
Supporter

Languages: English (English )

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

Hello,

you need to use the correct language category slug, you can not set the default language category in 2nd language import process, it is not expected and how import process works, so it will cause issues.

Your import template needs to match the correct existing category slug on your website, default / translated.

Regards,
Drazen