
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 6, 2021, 10:13
Hello
Do you need to show a text message?
And it should depend on the currency or on the current location of the user?
an example:
global $WOOCS;
if('EUR' == $WOOCS->current_currency){
echo "Your message";
}
Hello
Do you need to show a text message?
And it should depend on the currency or on the current location of the user?
an example:
global $WOOCS;
if('EUR' == $WOOCS->current_currency){
echo"Your message";
}

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 7, 2021, 11:06
Hello
Yes, you can use my code, but this code restricts the display of the text depending on the currency. This is what I can provide from my side
but only in the shopping cart page and check-out page. - This means that you need to insert the custom code into the cart and checkout template.
what would be the [ shortcode] I could insert into my pages? - In this case, you need to create a custom shortcode- https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/
Hello
Yes, you can use my code, but this code restricts the display of the text depending on the currency. This is what I can provide from my side
but only in the shopping cart page and check-out page. - This means that you need to insert the custom code into the cart and checkout template.
what would be the [ shortcode] I could insert into my pages? - In this case, you need to create a custom shortcode- https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/