This topic has 7 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler
Hello,
May I know what file and lines of code I need to change the word “New” to “On Hold” ?
Sorry the image broken. Here’s the correct one.
Hello,
You can use translation (for example Loco Translate plugin) to change the text without editing php files.
backend – woopress/framework/theme-options.php http://prntscr.com/l1zv5o – this can’t be done via child theme so changes there need to be repeated after every theme update.
frontend – theme/framework/woo.php http://prntscr.com/l1zvon, theme/woocommerce/loop/sale-flash.php http://prntscr.com/l1zw39 (function should be copied to child-theme/function.php and have to become changed there, the file also should be copied with the same directory tree to your child-theme).
Feel free to ask if you have any other questions
Regards
Thank you thank you. It works.
You’re welcome!
Have a nice day.
Regards
Hello, I’m trying to do the same for “sold” product. I want to display “Sold” text in front end.
Currently the easiest way is to use the “Out of stock” option. But it not displaying the status in single product page. Only in shop page. So, for this function, is there anyway where I can make it display on single product page and also change the text from “Out of Stock” to “Sold” ?
The second choice I think of, is duplicate the “Mark as New” function. Inside theme-options.php, I already duplicate the code and change the id as ‘product_sold’. Now, may I know where I can register this array as I’m seeing in sale-flash.php, you called it using (etheme_product_is_new($post->id) && etheme_get_option(‘new_icon’)
EDIT: OK sorry nevermind, I just notice the out of stock div been hide in single product page. I manage to show it and change the text to sold. xD
Hello,
I am glad that you sorted out.
Regards
You must be logged in to reply to this topic.Log in/Sign up