Home Forums Theme Support Dokan How to delete the price of the underline?

This topic is: resolved

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  mx 4 years, 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20861

    mx
    Member
    Post count: 42

    Hi,
    How to delete the price of the underline?
    Search less than < ins > < / ins >, unable to delete the price of the underline
    Thank you!



    #20922

    Sk
    Moderator
    Post count: 371

    Hello mx,

    please use this following code.

    add_filter( 'woocommerce_sale_price_html', function($price, $product){
    
        $tax_display_mode      = get_option( 'woocommerce_tax_display_shop' );
        $display_price         = $tax_display_mode == 'incl' ? $product->get_price_including_tax() : $product->get_price_excluding_tax();
    
        $price = wc_price( $display_price ) . $product->get_price_suffix();
        
        return $price;
    
    }, 10 ,2 );

    Thank you.

    #20988

    mx
    Member
    Post count: 42
    This reply has been marked as private.
    #21004

    Sk
    Moderator
    Post count: 371

    use this css at the bottom of your dokan style sheet dokan/style.css

    ins {
      text-decoration: none;
    }

    thank you.

    #21006

    mx
    Member
    Post count: 42

    sk_shaikat
    thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to delete the price of the underline?’ is closed to new replies.