• Resolved dodowa

    (@dodowa)


    Hello, I use wordpress+WooCommerce to connect the “Green World Gold Flow” plug-in + TranslatePress – Multilingual. As long as I convert the traditional Chinese of the webpage into English, the “trp-form-language” error screen will appear when I send the order.

    The plug-in engineer said that the parameter “trp-form-language” will be sent to Green World when creating an order. It is suggested that I adjust not to send this parameter, but I don’t know how to adjust it. Can someone teach me how to deal with it? thank you very much!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Dragos

    (@dragosvrejiu)

    Hello,

    Thank you for getting in touch with us!

    You can prevent TranslatePress from adding the language parameter by doing so:

    1) Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db

    2) Add the following code to the end of it:
    add_filter(‘trp_form_inputs’, ‘trp_remove_trp_form_language’, 10, 4);
    function trp_remove_trp_form_language($input, $trp_language, $slug, $row)
    {
    return ”;
    }

    Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.

    Note: In case you are using a child theme, you can also add the code snippet at the end of the functions.php file. If you are not using a child theme, the changes will be overwritten at updates and it is better to use a mini-plugin for this.

    Best regards,

    Thread Starter dodowa

    (@dodowa)

    Thank you very much for your reply!

    I tried to add an empty plug-in and add the code (can you please help me to see if the picture is correct?), but I still can’t solve this problem.

    After translating and placing an order, such a code still appears.

    "Note for message:Parameter Error. trp-form-language Not In Spec."

    Where can I find it? wrong?

    This is my test site:https://www.mrcypress.ml

    Thread Starter dodowa

    (@dodowa)

    hi ~ @dragosvrejiu

    Thank you very much for your reply!

    I forgot to mark you on the above, I hope you can see the reply, and then please take the time to reply, thank you very much!

    Plugin Support Alex

    (@alexcozmoslabs)

    I set this ticket as Resolved.
    You can also change its status back to unresolved and let us know by replying to this topic if your issue still needs attention.
    Another option is to let this ticket as it is and open a new one where to mention the issue again and ask for support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to set not to send the parameter “trp-form-language”?’ is closed to new replies.