Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi elnoe,

    Best if you don’t edit the php file directly as it will be erased next time you update the plugin. Instead we have a filter you can use for this.

    You can change this text using the filter “wwp_filter_wholesale_price_title_text”

    add_filter('wwp_filter_wholesale_price_title_text', 'override_wholesale_text', 10, 1);
    
    function override_wholesale_text($wholesaletext) {
        return 'Trade Price:'
    }

    Cheers,
    Josh

    Thread Starter elnoe

    (@elnoe)

    Hello, where I have to add this filter to make it work and do not delete in next updates? Thank you!

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi elnoe, just drop that code in your functions.php of your theme and it should work.

    Cheers,
    Josh

    Thread Starter elnoe

    (@elnoe)

    Hello Josh,

    Thank you for your time.

    When you insert the code in the functions.php shows me the error:

    Parse error: syntax error, unexpected ‘}’ in /htdocs/public/www/wp-content/themes/goodstore/functions.php on line 31

    What can i do?

    Thank you very much

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Sorry missed a semicolon:

    add_filter('wwp_filter_wholesale_price_title_text', 'override_wholesale_text', 10, 1);
    
    function override_wholesale_text($wholesaletext) {
        return 'Trade Price:';
    }
    Thread Starter elnoe

    (@elnoe)

    Thanks, this code works fine, but when I try to put something in Spanish, it gives me error :S

    Parse error: syntax error, unexpected ‘Mayor’ (T_STRING) in /htdocs/public/www/wp-content/themes/goodstore/functions.php on line 28

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hey elnoe,

    I’ll need to see the full code if you can paste it, thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translate "Whosale Price"’ is closed to new replies.