Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hello WISTFUL,

    yes, this is correct (and by-design). The checkout usually is done through an AJAX request, which happens on the admin side of your website. That’s why the language in the back-end changed after checkout took place.
    But that’s not a problem for a regular user/customer, is it?
    If you grant your customers back-end access then they most likely would like it to be in the language they also chose for their order, wouldn’t they?

    I can understand that this might not be what you expect when you test the plugin (and your shop) as an admin, though.

    Kind regards,
    Thorsten

    Thread Starter WISTFUL

    (@ansar_m)

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi WISTFUL,

    the question and answer that you provided are about something different that what you asked for.

    There the problem is that a part of the checkout page (that is loaded/refreshed via AJAX, which again is happening in the back-end) is displayed in the wrong (default) language – and the problem is the plugin Backend Localization, as it seems.

    I will mark this topic as resolved now, because for the normal customer/user the plugin (as well as the website as a whole) behaves as expected.

    Kind regards,
    Thorsten

    Thread Starter WISTFUL

    (@ansar_m)

    Hi Thorsten,

    Yes, But all those who have access to my admin panel, are using the same language. (that set by WPLANG in wp-config.php)

    I have many custom string in my language and I do not wish they see admin panel in other language.

    Is there any way that we prevent from changing default admin language?

    For example, Setting default language in admin header for loading default language after every visit of admin panel.

    Or duplicate admin ajax file and choose it for the woocommerce checkout page?

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi WISTFUL,

    I just set this topic back to not resolved. I will be trying to tackle this issue, however, that most probably won’t happen before next week.

    Kind regards,
    Thorsten

    Thread Starter WISTFUL

    (@ansar_m)

    Thanks Thorsten …

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi WISTFUL,

    I just released an update that will fix this issue.
    The admin language won’t be changed automatically anymore when performing an AJAX request from the front-end.

    Kind regards,
    Thorsten

    Thread Starter WISTFUL

    (@ansar_m)

    Hi, WOW!
    Very Thanks …

    Thread Starter WISTFUL

    (@ansar_m)

    Unfortunately, it seems that the issue is still not resolved, pls check thorsten.

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Did you try version 1.4.3? I released two bugfixes shortly after my post here.
    Is it still not working as you want it?
    If so, what’s wrong?

    Kind regards,
    Thorsten

    Thread Starter WISTFUL

    (@ansar_m)

    Hi…

    Yes, I tried v1.4.3

    My default language in qTranslate and also WPLANG in the wp-config.php file is not English.

    In your new release when I visit https://www.mydomain.com/en/cart and click on “Proceed to Checkout” button, my admin language will be changed automatically to English.

    Also when I visit https://www.mydomain.com/cart and click on “Proceed to Checkout” button, my admin language will be changed automatically to my default language again.

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi WISTFUL,

    I’m sorry, but I can’t confirm the first situation you described.
    My default language is German, English and Polish are defined and active as well.
    If I visit https://www.mydomain.com/en/cart and click on “Proceed to Checkout” button my admin language does not change at all – and that’s exactly what the update was all about, right?

    And the second situation (the admin language is reset to default) is by-design. That is the compromise (if you want to call it this) the plugin is making. You (i.e., the admin) set the default language (in qTranslate). A user then can change the front-end language to some other available language. And if you visit the backend (after some AJAX request during the shopping activity) the back-end language ONCE will be set to the default language (that you specified). You can, however, change the admin language to whatever you like, and that choice stays active until A) you chose another language, or B) some other AJAX request has been handled.

    It seems there is something else going on if your admin language really is changed to english while this is not your default language…

    Kind regards,
    Thorsten

    Thread Starter WISTFUL

    (@ansar_m)

    Hello,

    I’ve disabled all plugins other than woocommerce, qtranslate and IM8 qTranslate WooCommerce and also remove all custom functions from theme’s functions.php file and try again but result was the same as before.

    Thorsten, please test your plugin on below template:
    https://www.ads-software.com/themes/catch-box

    Thread Starter WISTFUL

    (@ansar_m)

    New plugin’s changes impact on my checkout performance. (e.g. display correct language for shipping method)

    Can you please add a variable in plugin that we can disable only new updates (that related to this topic) from plugin?

    Thread Starter WISTFUL

    (@ansar_m)

    Hi Thorsten,

    Please tell me that which plugin line must be tagged for disable this topic features?

    Thanks…

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Change admin's language by switch lang on checkout page’ is closed to new replies.