• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Changing Product Variations Lable on Front End woocommerce

Pants

New member
Babiato Lover
Jul 14, 2023
17
6
3
Fault Description: I am setting up a woo commerce shop and am wondering if someone could give me advice on how to change the variation label names. For instance, I have a candle thru printify, it has 5 differnt smells. I don't like the names printify gives the smells, but I can't chage them on my front end. Any help / advice / plugin reccomendation... appreciated!

What have you done to try to fix the issue: I've got jetwoo builder but this doesn't seem to be an option within it?
 
You can try to "translate" the words that printify gives you with this code. Just add it to your child theme functions.php file.
If the code works you need to paste this code several times to change the different smell names. Make sure to change the my_text_strings_1 to my_text_strings_2 and so on in both places.

Code:
/**
 * Change text strings
 *
 * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
 */
function my_text_strings_1( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'The smell name' :
            $translated_text = __( 'Another smell name', 'woocommerce' );
            break;
    }
    return $translated_text;
}
add_filter( 'gettext', 'my_text_strings_1', 20, 3 );
 
  • Like
Reactions: Pants
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock