Support » Plugin: WooCommerce Multilingual - run WooCommerce with WPML » All product permalinks broken

  • Resolved artystyc

    (@artystyc)


    Hello,

    I have updated this plugin and all products page permalinks broke. I have my site in spanish and french and the /product/ slug (which was working fine until now) changed to /producto/ without doing nothing. I did NOT translate anything through the string translator. That means that I did no action for this to change. Just updated the plugin and noticed that lots of visitors were being shown 404 errors when trying to view products pages.

    As a result the shop pages are throwing 404 anywere. The same thing happened to categories, they have been translated to french and changed to /categorie-produit/. Still don’t know why.

    This is not the only problem, but it’s the most annoying.

    The other issue is that ajax functionality stopped working for the cart.

    http://wordpress.org/plugins/woocommerce-multilingual/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Amir Helzer

    (@amirhelzer)

    Where can we see your site?

    To replicate this, we would need a bit more information. Are you getting any errors in the PHP log file? What is your site’s permalink structure? What is the language configuration of your site?

    Hi Artystyc,
    what is your main language and which language you have set to strings?

    do you try set WC permalinks to default and update?

    Hello,

    Thank you for your answers. I didn’t have much time these days to fix this, so I have solved it by installing again the 3.0.1 plugin version and deactivating French. I know that’s not a good fix, but for me is a solution for the moment.

    I’m afraid I do not have access to the PHP log file. The permalink structure is:
    General Settings: Custom –> /%category%/%postname%/
    Product permalink base: Default –> ?product=sample-product

    I have noticed that some new strings appeared on the strings translation dashboard. I have checked that ‘URL slugs’ are those that actually appear on the website. If they change, permalink are broken. These new strings are:
    1. Context: URL slugs – tienda/%product_cat% / Name: URL slugs – tienda/%product_cat%
    2. Context: URL slugs – tienda / Name: URL slugs – tienda
    3. Context: URL slugs – product / Name: URL slugs – product. This is the slug that was breaking permalinks. It had changed from “product” to “producto” itself when I updated the plugin. So I changed it to “producto” through the strings translation console and now it works.
    4. Context: WordPress / Name: URL slug: product

    So there are two different slugs for ‘product’:
    (3.) URL slugs
    (4.) WordPress
    Why are there ‘URL slugs’ now? Why is there a ‘product’ slug duplicated? Is that maybe the issue?
    I had WC permalinks set to default before. That is why it is strange that they changed, because I did not change anything.

    About language configuration:
    Main language is Spanish. Strings are in English. So in the strings translation dashboard I write translations for Spanish and French.

    Hi Artystyc,
    ‘URL slugs’ – registered automaticaly in WCML.

    Also when you set “default” WC permalinks then WC uses “product” slug and WCML get translations for “product” from WC .mo files. If you want change translation for this slug in other languages you can do this in “String translation” (URL slugs – product) or in Translation management->Multilingual Content Setup->Custom posts.

    So please update to 3.1 version then save permalinks and edit translations for “product” slug if needed. If you will have 404 error on the product page then please let me know and I’ll look on your configuration.

    Hi,

    I have the same problem and i’m not able to fix it. Here is my website : http://www.cafekopiluwak.ca

    The main language is French, everything is working but when I switch to english, I get an 404 error when I click on a product.

    Here is an exemple of my URL :
    In French : http://www.cafekopiluwak.ca/produit/kopi-luwak-50-g/
    In English : http://www.cafekopiluwak.ca/en/produit/bag-50-g/

    It’s working when I enter /Produit/ in the English URL but when I click on a Product it brings me on the URL …/product/ but it doesnt work.

    Thanks

    Hi natalialedoux,

    Can you check if you have translated the ‘product’ string in WPML>Strings Translation? You need it translated and marked as ‘complete’ in order to generate good working product urls. Can you check it and tell us if your issue gets fixed? 🙂

    Thanks,
    Bernat

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All product permalinks broken’ is closed to new replies.