Merhabalar öncelikle . Sitemde varyasyonlu ürünlerin en düşük fiyatları göstermesi amacıyla aşağıdaki kodu kullanıyorum . Ancak Sorunum şu google merchant feedlerinde varyasyonlu urunlerde en düşük ürünün fiyatını gösterdiği için üst kısımda altta bedeni seçip beden fiyatını göstersede wp google fiyatı farklı algılıyor. Resimde 1 Yazan kısmın alttaki beden seçildiginde sadece fiyat olarak çıkmasını beden seçilmeden fiyatın en dusuk fıyat olarak gozukmemesını ıstıyorum. Yani kısacası urune gırdım sıngle product sayfasına urun fıyatının en dusuk halı gozukmeyecek ben asagıdan bır fıyat sectıgımde beden fıyatı yukardakı fıyat ıle aynı olucak.

add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 );
add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 );
function wc_wc20_variation_price_format( $price, $product ) {
// Main Price
$prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) );
$price = $prices[0] !== $prices[1] ? sprintf( __( '%1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
// Sale Price
$prices = array( $product->get_variation_regular_price( 'min', true ), $product->get_variation_regular_price( 'max', true ) );
sort( $prices );
$saleprice = $prices[0] !== $prices[1] ? sprintf( __( '%1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
if ( $price !== $saleprice ) {
$price = '<del>' . $saleprice . '</del> <ins>' . $price . '</ins>';
}
return $price;
}