Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

sally.wolleat on "[Plugin: WooCommerce - excelling eCommerce] Delete "From" price"

$
0
0

I was just dealing with a similar situation where a client didn't want the lowest price of a variable product to show up in the price field on the shop and individual product pages. This is what I used (it displays only the max price) and goes in the functions.php file.

Found it here: https://gist.github.com/mikejolley/1600117

/**
* Returns max price for variably priced 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;
	}

Viewing all articles
Browse latest Browse all 104029

Trending Articles