• Resolved strahinjagajic

    (@strahinjagajic)


    I have two versions of catalog, Italian and English.

    I’m using WPML plugin for translation.

    Both catalogs have same PRODUCT NAME and SLUG NAME. I have pretty permalinks option enabled in plugin.

    When I visit product page for Italian product:

    domain.com/catalogo/product/slug-name/

    Everything is working correctly.

    When I visit product page for English product:

    domain.com/en/catalogue/product/slug-name/

    It shows me Italian version of product, NOTE: SLUG NAME is same. When I change slug name for English version everything is working correctly, but I need slugs to stay same on both versions of catalog.

    Is there possible solution for this, without changing slug names ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi strahin,

    I’m not quite sure exactly what you’re doing right now and what you want it to do. Your manually entering a different slug for the English one, but it is not loading that slug/URL when you click a product in the English catalog?

    Or are you manually entering the exact same slug for the Italian and English version? If so, then, unfortunately, you will have to create a different slug for the English version, which is not exactly the same as the Italian version. Since, in our catalog, these are technically two completely separate products, they cannot have the same exact slug, or else it won’t properly query the product and its info from the database.

    Thread Starter strahinjagajic

    (@strahinjagajic)

    Its loading product, but it shows product from Italian catalog, because slugs are same.
    I want to have same catalog but different language, so I created copy of my Italian catalog for English version. In that process all slugs remained same.
    I’m manually entering exact same slug for products on both catalogs. They are overlapping. Thanks you for your answer.

    Hi strahinjagajic,

    In the above case, since the slugs are same, when the catalog queries the database for the product information of the requested slug the database returns the data for the first entry that it finds. This is causing the catalog to show the same information on both the versions since it’s basically the same details that’s being returned in both the cases(due to slug being the same).
    We recommend setting up a separate catalog as well as a separate set of products, categories, tags, custom fields, etc. for each language. This is because our catalog is not a custom post type and so you will most likely not be able to create a direct translation for each product, category, etc. using WPML. By creating a separate set of everything, you have full control over the wording of everything. Then you can create two linked pages using WPML and put your catalog shortcodes on those pages.

    Thread Starter strahinjagajic

    (@strahinjagajic)

    I did as you sad, that is my solution for now.
    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘multi language catalog slug problem’ is closed to new replies.