Product catlog price range

Support Area Forums Elite Product catlog price range

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://
  • Author
    Posts
  • #32647
    Rama Devi
    Participant

    2) The product catalog is showing the Pricing range. Instead I just want to display one price ( Either the lower or the Higher). How should I do this? Also let me know the way to set the Pricing as ” Starting From xxx $ ”

    #32653
    Bill Robbins
    Moderator

    There isn’t a setting for that so you’ll to add some code to filter the price text for you. Woo has a help desk topic at https://support.woothemes.com/hc/communities/public/questions/202794676-Showing-only-1-price-for-variable-product that can show you how to only show one price.

    #32702
    Rama Devi
    Participant

    Hi Bill, this is the code that is shown in the help topic to display the maximum price. But this isn’t working. Please check if this code is correct.

    /**
    * Only display maximum price for WooCommerce variable products
    **/
    add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2);

    function custom_variation_price( $price, $product ) {

    $price = ”;

    $price .= woocommerce_price($product->max_variation_price);

    return $price;
    }

    #32704
    Bill Robbins
    Moderator

    Rami,

    The code there isn’t mine. It’s possible there has been a change to WooCommerce since that topic was created on their site. If you run into trouble with this, you’d do best to ask Woo for help.

    Bill

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Product catlog price range’ is closed to new replies.