WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Remove prices from Widget/Sidebar listings

Remove prices from Widget/Sidebar listings

Viewing 5 replies - 1 through 5 (of 5 total)
  • DeeperLook

    @deeperlook

    I’m wondering the same thing?

    esmi

    @esmi

    Forum Moderator

    @deeperlook: If you require assistance then, as per the Forum Welcome, please post your own topic.

    DeeperLook

    @deeperlook

    Hey Rican,

    I found it, go to /woocommerce/classes/widgets/ and select the widgets you wish to change.

    From there find this line of code and remove it:
    ‘ . $product->get_price_html() . ‘

    Now save and you’re done. Hope this helps.

    DeeperLook

    Rican UK

    @rican-uk

    Hi DeeperLook,

    What will happen when I update Woocommerce? These files are likely to be replaced with the original removing my changes. Is there anyway I can copy them to my child theme so they are not replaced?

    Also, I really only want to remove the price if users are not logged in. Currently I have some code which replaces all prices with ‘Login or Register to see price’ if the user isn’t logged in. This works fine for the main product price, but looks very messy on the best sellers list!

    If there was some code amendments I could make that only removes the price for logged out users, that would be great!

    Many thanks for this code anyway….

    Rican

    @deeperlook
    Thanks mate, simple and fast!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove prices from Widget/Sidebar listings’ is closed to new replies.
Skip to toolbar