portodiakofti
Forum Replies Created
-
so it’s not possible to design a thank you page for failed order AND successful order? not the same one obviously, one for failed order and one for successful.
Thank you
Forum: Plugins
In reply to: [Advanced Woo Search] Search box not displayed in mobileI use a shortcode on the header of my page. As you see in my page, search form is visible in desktop version, while is not displayed in mobile version
According to WPML : “`The plugin is storing texts in theme options named “woo_thank_you_page_params[text_editor]” in an encoded format,
it uses json and base64 encoding, which is making it hard to translate the content.WPML can translate the content from theme option but in this case you will need few other tools to translate the content
The steps tested were:
– Go to WPML->String Translations->Translate texts in admin screens ? and add the woo_thank_you_page_params[text_editor] to string Translations
– Go to string translations and properly copy the value, the value looks like “[“PGgyI–multipletexts–A+”]
– Remove the [” from the front and from the back “] of the value
– Go here https://www.base64decode.org/ and paste the value and decode it.
– Copy the decoded value and translate it
– Once translated go here: https://www.base64encode.org/ and encode the value
– Copy the encoded value and add [” at the front and “] at the encode
– Add the value as translations in the string translations.
Further, the code plugin is using are using in woo-thank-you-page-customizer/templates/thankyou.php line no.25
$blocks = json_decode( $data->get_params( ‘blocks’ ) );is not returning the results from theme option translation properly.
So, I commented our the line and add the following line:
$text_editor = json_decode( get_option(‘woo_thank_you_page_params’)[‘text_editor’] );Which worked for secondary language but not for primary language.
So can you contact the plugin author and ask if they can check this out and make it easier to translate the content. You can suggest them to use this hook https://wpml.org/wpml-hook/wpml_register_single_string/ before outputing the content so they will be available for translations or disable encoding.
Or they can contact us on to make the plugin compatible: https://wpml.org/documentation/support/go-global-program/
Further since the code they are using $data->get_params is not returning translated values the order_confirmation_header, thank_you_message_message & order_details_header is not shown as translated.`”