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.

Author Posts
September 27, 2018 at 9:23 am #2769958

raoulA

Hi WPML,

We are currently developing a WooCommerce Catalog in 2 languages (Dutch & English).

The main language is Dutch and everything is working fine in Dutch.

The problem is: We will have multiple categories with subcategories. In Dutch it is correct so it's:

holland.totoweb.nl/nl/network-hardware-catalogus/cisco/cisco-firewalls/asa5500x-ssd120/

But in English the slugs of the categories and subcategories need to be the same as in Dutch so:

holland.totoweb.nl/en/network-hardware-catalog/cisco/cisco-firewalls/asa5500x-ssd120/

Right now it's:

holland.totoweb.nl/en/network-hardware-catalog/cisco-en/cisco-firewalls-en/asa5500x-ssd120/

So the question is:

How can we get rid of the "-en" after the categories?

Kind regards,

Frank

September 28, 2018 at 8:16 am #2772855

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Frank,

Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

For your kind updates, it is happening becuase we can't have the same slug term. This is a feature from WordPress and we are expecting it will change in WordPress 5.0.

As a workaround, we can update it via Quick Edit feature of a term. Please check the attached images for more details and let me know your feedback.

--
Thanks!

Bigul

September 28, 2018 at 9:26 am #2773100

raoulA

Hi Bigul,

Thanks for the response.

We did it like this now. It's working fine now.

Is this the correct way or is it going to give trouble when we import more products?

Kind regards,

Frank

September 28, 2018 at 4:07 pm #2774378

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Frank,

Thank you for the feedback. It is an expected result as for now and expecting to change in WordPress 5.0. It will only happen if we have the same term name/slug in primary and secondary language.

--
Thanks!

Bigul

September 28, 2018 at 5:01 pm #2774486

raoulA

Hi Bigul,

We do want to have the same slug in primary and secondary language. If we do the settings as in our last screeenshots it works and we have the same url's in every language. The only difference is the prefix /nl/ and /en/. The only thing we want to know from you if we can proceed this way. We have to do some very large imports. Regards, Frank

October 1, 2018 at 1:44 pm #2778330

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Frank,

I have checked about this with our team. It is happening because of a WordPress limitation and expected to fix in WordPress 5.0 release.

Hope you are trying to import the Posts/Terms via WP All Import.

If we do import now, in English you can expect language code prefix like this cisco-en or cisco-firewalls-en if we have the same name for the term in English.

And we have to edit via Quick Edit screen if we want slugs like cisco or cisco-firewalls in both languages.

--
Thanks!

Bigul

The topic ‘[Closed] WooCommerce Product Category Slugs’ is closed to new replies.