WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Price ending with (2 posts)

  1. anur
    Member
    Posted 1 year ago #

    Hi
    I want to change the way prices are displayed,I want the prices to end with with a "/-" eg $ 500 /- how do I do it??

    Anur

    http://wordpress.org/plugins/woocommerce/

  2. terrytsang
    Member
    Posted 1 year ago #

    @anur, you can try below code:

    add_filter( 'woocommerce_get_price_html', 'custom_price_html', 100, 2 );
    function custom_price_html( $price, $product ){
        if($price != "")
          return $price . ' /-';
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic