The Variable Price Prefix Label "From": How to chage it?
-
I created a child theme for a wootheme using the woocommerce plugin. I I need to change the price label of “From” for the variable products.
I found this in several postings about changing the “From” label:
add_filter(‘woocommerce_variable_price_html’,’custom_from’,10);
add_filter(‘woocommerce_grouped_price_html’,’custom_from’,10);
add_filter(‘woocommerce_variable_sale_price_html’,’custom_from’,10);function custom_from($price){
$new_from = “THE-NEW-LABEL-HERE”;
$price = str_replace(‘From’,$new_from,$price);
return $price;
}AddING this code to a newly created functions.php file for the child theme does not work. I’m guessing it’s because the functions.php file is loaded prior to the parent themes’ functions.php file.
I’ve search all of the woocommerce template files looking for the “From” prefix label so I can change it to “Desde” which is what I want it to say rather than “From”. For some reason right now the word “From” is being translated to “De” but should be “Desde”.
Does anyone know how to edit and which file(s) to edit to make this change. Any help with this is greatly appreciate.
Paul
- The topic ‘The Variable Price Prefix Label "From": How to chage it?’ is closed to new replies.