• Resolved JapeNZ

    (@japenz)


    Hi there,

    Is it possible to edit the Wholesale Price admin column title to just read ‘Wholesale’?
    I was able to resize the column, but can’t for life of me work out how to alter the title.

    Also is there any way to make it sortable?

    Thank you for your help!

    • This topic was modified 10 months ago by JapeNZ.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Howdy again @japenz,

    You should be able to do this with a small snippet like so:

    add_filter('wwp_filter_wholesale_price_title_text', 'override_wholesale_price_title_text_on_admin');
    function override_wholesale_price_title_text_on_admin($title) {
        if ( is_admin() ) {
            $title = 'Wholesale: ';
        }
        return $title;
    }
    Thread Starter JapeNZ

    (@japenz)

    Hi @jkohlbach,

    Thanks for getting back to me so quickly again ??

    Unfortunately this caused a fatal error when I tried it, are you able to confirm if it works on your end please?

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @japenz,

    Just to be on the same page by altering the text do you mean the one on the Products page or product list dashboard? Screenshot by Lightshot (prnt.sc)

    We have a similar setting for this in Woocommerce > Settings > Wholesale Prices > Price > Wholesale Price Text: Screenshot by Lightshot (prnt.sc)

    You mentioned columns so I’ll assume you meant the first, there’s currently no filter for this to be changed but you could download LOCO translate plugin and translate it from English to English. Essentially, you are changing the wording for it.

    Screenshot by Lightshot (prnt.sc)

    Screenshot by Lightshot (prnt.sc)

    Thread Starter JapeNZ

    (@japenz)

    Hi @superlemon1998,

    Thank you for looking at this for me ??

    Yes you’re absolutely right, it’s the product list dashboard I’m trying to alter.

    Here’s a screenshot:

    It’s purely a cosmetic change I’d like to make… but it’s driving my OCD bananas haha!

    Also if there’s a way to make the column sortable that would be great, and would actually be funtionally useful rather than simply cosmetic ??

    Thanks again for your help!

    • This reply was modified 10 months ago by JapeNZ.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit Wholesale Price admin column’ is closed to new replies.