Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1015384
    Mik3yMcD
    Participant

    im using woocommerce, and for some reason it keeps displaying in2 after all my prices, is there a way to remove this?

    Thanks

    #1015385
    Mik3yMcD
    Participant
    This reply has been marked as private.
    #1015404
    Rupok
    Member

    Hi there,

    Thanks for writing in! It seems you have set this as dimension unit – http://prntscr.com/b9vrtt

    Let’s change this from Product settings.

    Cheers!

    #1015450
    Mik3yMcD
    Participant

    Thanks, the drop down makes me choose something though and i dont want it to show at all.

    #1015497
    Rad
    Moderator

    Hi there,

    Please add this code to your child theme’s functions.php

    add_filter( 'woocommerce_get_price_html', 'no_units', 99, 2 );
    
    function no_units ( $price, $product ) {
    
    return wc_price( $product->get_price() );
    
    }

    Hope this helps.

    #1015571
    Mik3yMcD
    Participant

    Thank you so much that worked perfect

    #1015779
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1015384 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>