Sorry the image broken. Here’s the correct one.
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
Thank you thank you. It works.
Have a nice day.
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
I am glad that you sorted out.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Seems you did not register purchase code for WooPress WordPress Support Forum to be able to create a topic on this forum.