• Resolved wimvl

    (@wimvl)


    Hi,

    When showing the order list on the ‘my account’ page, the orders are only shown for the current language.
    From what I see in the plugin code, this should be resolved by the correctMyAccountOrderQuery function in src/Hyan/WPI/Order.php (which is the implementation of filter woocommerce_my_account_my_orders_query). This function changes the ‘lang’ argument to include all languages. But the Woocommerce ‘wc_get_orders’ function, does nothing with that extra argument.
    If I move the ‘lang’ argument from $args to $wp_query_args in the ‘wc_get_orders’ function, all languages are shown…

    Kr,
    Wim

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My account – Order list only in current language’ is closed to new replies.