Change Mark Product as "New" to "OnHold"

This topic has 7 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler

  • Avatar: r1nk
    r1nk
    Participant
    October 4, 2018 at 07:43

    Hello,

    May I know what file and lines of code I need to change the word “New” to “On Hold” ?

    product NEW option

    6 Answers
    Avatar: r1nk
    r1nk
    Participant
    October 4, 2018 at 07:44

    Sorry the image broken. Here’s the correct one.

    new

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 4, 2018 at 09:11

    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

    Avatar: r1nk
    r1nk
    Participant
    October 4, 2018 at 09:29

    Thank you thank you. It works.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 4, 2018 at 09:30

    You’re welcome!
    Have a nice day.

    Regards

    Avatar: r1nk
    r1nk
    Participant
    October 31, 2018 at 16:12

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 1, 2018 at 09:45

    Hello,

    I am glad that you sorted out.

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.