• Hello!

    I’m writing a little script in php that will show a shortcode if language is equal to spanish and another one if language is equal to english in a woocommerce checkout, inside a multisite website…

    I’ve tried several options with no luck, and I’m not a skilled programmer… could you please point me in the right direction? I have a very basic php understanding…

    This is what I’m trying to accomplish:

    if language == es_ES do shortcode

    elseif language == en_US do another-shortcode

    I already have the php code for the conditional statement, the help I’m seeking for is to get the actual language from the checkout page to make it happen… I’m including this script as a function in the functions.php in the child theme.

    Thanks in advance for any reply…

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please help with a little script to get the actual language’ is closed to new replies.