Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Estore – Redirection message upon checkout not translated with multilingual

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Estore – Redirection message upon checkout not translated with multilingual

Tagged: qTranslate, redirection, Translation

  • This topic has 6 replies, 2 voices, and was last updated 10 years, 8 months ago by b_machuel.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 8, 2012 at 9:08 am #6834
    b_machuel
    Member

    Hi,

    I managed to have the translation of eStore work with qtranslate (French and English).

    I still have a problem however with the redirection message that is displayed upon checkout, which only appears in French.

    One more question: is it possible to edit the email tags?

    Thanks in advance for your kind assistance.

    Best regards,

    Benoît

    July 9, 2012 at 2:58 am #47111
    admin
    Keymaster

    Hi, That would probably because on the checkout redirection it doesn’t know the language hack that you added so it is doing the standard language loading based on whatever you specified in the admin settings (I am guessing it is set to french). What hack did you do to get the qTranslate working? Also please post a link to the page where I can go and checkout what you have done.

    No, the email tags can’t be edited.

    July 9, 2012 at 4:19 am #47112
    b_machuel
    Member

    Many thanks for your prompt reply. I edited wp_eStore1.php as follows:

    //includes

    /*$cart_language = get_option(‘eStore_cart_language’);

    if (!empty($cart_language))

    $language_file = “languages/”.$cart_language;

    else

    $language_file = “languages/eng.php”;

    include_once($language_file);*/

    function wp_eStore_load_qTranslate_lang() // Added qtranslate support

    {

    $cart_language = qtrans_getLanguage();

    if ($cart_language == “en”) $language_file = “languages/i18n.php”;

    else $language_file = “languages/fr.php”;

    if(empty($language_file)) {

    $cart_language = get_option(‘eStore_cart_language’);

    if (!empty($cart_language)){

    $language_file = “languages/”.$cart_language;

    }

    else{

    $language_file = “languages/fr.php”;

    }

    }

    include_once($language_file);

    }

    add_action(‘init’, ‘wp_eStore_load_qTranslate_lang’); // End of qtranslate support

    The website (under development) can be reached at the following address:

    http://www.label-inconnu.com/e-shop/enregistrements/lucis-memoria?lang=en

    July 10, 2012 at 6:46 am #47113
    admin
    Keymaster

    Thank you… I think what is not happening is that in the payment submission page it is not getting the following value so it is not dynamically loading the correct language file:

    lang=en

    Can you please deactivate the “Fancy Redirection on checkout” feature from eStore settings so I can test one thing?

    July 10, 2012 at 7:24 am #47114
    b_machuel
    Member

    Done.

    Benoît

    July 11, 2012 at 3:49 am #47115
    admin
    Keymaster

    Thank you. The issue is as I suspected earlier. Lets try the following tweak so we can tell which language to load when it goes to the checkout processing page.

    Open the “eStore_cart.php” file and search for the following block of code:

    "'.WP_ESTORE_URL.'/eStore_payment_submission.php"

    Once you find it, change it the following:

    "'.WP_ESTORE_URL.'/eStore_payment_submission.php?lang='.qtrans_getLanguage().'"

    This should add the “lang=en” or “lang=fr” to the URL which will help it to load the correct language file.

    July 11, 2012 at 9:44 am #47116
    b_machuel
    Member

    This is working. Many thanks.

    Best wishes,

    Benoît

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ