Skip Navigation

Resolved

Reported for: WooCommerce Multilingual & Multicurrency 5.3.1

Resolved in: WCML 5.3.2

Topic Tags: WCML

Overview of the issue

When purchasing a product in a secondary language, the user may be redirected to the ‘order-received’ page in the main language. This issue can occur if the checkout page includes the ‘Classic Checkout’ block or the ‘woocommerce_checkout’ shortcode.

Workaround

Our team is actively working on resolving this issue. In the meantime, you can use the following workaround:

  • Open the wp-content/plugins/woocommerce-multilingual/wpml-woocommerce.php file
  • Around line 128, Change:
    \WCML\OrderNotes\Hooks::class,
    
  • For
    //\WCML\OrderNotes\Hooks::class,
    

10 Responses to “WCML - Custom order received endpoint redirects to default language”

  1. Uf This is too much for me. Need I go to cpanel ?? Maybe I can give you access to cpanel ? I do but sorry not solve problem

    \WCML\Rest\Store\HooksFactory::class,
    \WCML\Importer\Products::class,
    \WCML\COT\Hooks::class,
    \WCML\DisplayAsTranslated\FrontendHooksFactory::class,
    //\WCML\OrderNotes\Hooks::class,
    \WCML\User\Hooks::class,
    \WCML\Exporter\AllLanguagesHooks::class,
    \WCML\Exporter\AttributeHeadersHooks::class,
    ];

    • Hey there,
      This issue should have been solved with WCML 5.3.2 which was release yesterday.
      Please make a full backup of your site and update this extension.
      Thank you for your report!

    • Hello Zybnek,
      This issue should have been solved with WCML 5.3.2 which was release yesterday.
      Please make a full backup of your site and update this extension.
      I hope it helps.

  2. I do not understand you exactly what I should do, but in open ticket buvart.eu Error on page you have everything very clearly explain.
    and Mr. Muhamed have an access to shop admin.
    On short way It I add product on basket and click I received an error 404 but only in Slovenia, Italian, Germany languages not in English or French work fine.

    Because I wait 7 days please hurry.

    Last comment from my host A2:

    Thank you for this update. I will be glad to help with buvart.eu. Per the attached screenshot, the cart loads without error using the Slovenian language. When using the Italian language, I do see the 404 error.

    Your WordPress installation has plugin updates that are needed, that may be contributing to the problem, as well as making your site less secure. You may want to make sure all elements of the site are updated, and then test again.

    If the issue persists after that, you may want to disable all plugins except the language plugin, to see if the cart loads as expected with only the needed plugins enabled. If it does, it may suggest there is a plugin conflict happening, causing the issue. You can re-enable each plugin one by one, testing the cart between each, to see which plugin is causing the conflict and then leave it disabled, replace it, etc.

    Please give the above a try and let us know if you have more questions.

  3. I received a following comment of my host

    Hello Robert,
    Thank you for providing additional details. I sincerely apologize for the inconvenience you’re experiencing with your website. I understand the importance of having a smoothly running website, and I’m committed to assisting you.
    Upon thorough investigation, I’ve identified that the 404 error you’re encountering is attributed to the plugin you are currently using. Please refer to the attached snippet for your convenience.

    [14-Dec-2023 09:56:46 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/buvartne/buvart.eu/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/class-wpml-ate-proxy.php on line 128
    To address this issue, I recommend reaching out to the plugin’s vendor or developer for further assistance.

    If your developer or consultant identifies any necessary server-related changes to meet your requirements, please inform us, and we will be more than happy to address those needs.g comment on my host. Please check