• Resolved jeesus

    (@jeesus)


    So I noticed that when user lands on WooCommerce checkout page, then instantly an AJAX call is made to /?wc-ajax=get_refreshed_fragments to refresh the contents of the cart. Unfortunately, after that call, all the product attributes and product title is reverted to the default language.

    Before the AJAX call everything is translated as it should, so my question is… where could I tap in to that call so that WooCommerce would return the content in the right language?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    this only happens in WooCommerce 3.2.x, 3.1.2 is fine for example.

    It’s ?wc-ajax=update_order_review rather than get_refreshed_fragments

    If you have time to look at it, please comment on:
    https://github.com/hyyan/woo-poly-integration/issues/240

    Plugin Author Hyyan Abo Fakher

    (@hyyan)

    Solved in version 1.0.4

    Welcome, in WooCommerce version 3.3.4 not work, please tell me what version is comaptibility with plugin in this moment?

    Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    nor 3.3.5, but I never saw the problem in 3.1.2 or earlier.

    Please follow this problem on:
    https://github.com/hyyan/woo-poly-integration/issues/319

    as a clue, woo seems to be calling:
    /?wc-ajax=update_order_review
    directly to the root of the website, instead of appending the ?wc-ajax to the current page as it used to do..
    this means that the path information which would be used by Polylang to determine the language is lost..

    Polylang doesn’t allow you to change the detected language as far as I know so this might not be easy to solve from this plugin, it might need to be solved by WooCommerce or Polylang.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkout language after AJAX call’ is closed to new replies.