Product catlog price range
URL to the page in question:
http://
-
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 $ ”
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.
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;
}
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
- The topic ‘Product catlog price range’ is closed to new replies.