Я использую следующее:
Код: Выделить всё
add_filter( 'woocommerce_get_price_html', 'custom_price_suffix', 100, 2 );
function custom_price_suffix( $price, $product ) {
if( is_product() ) {
$price = $price . ' incl. tax';
}
return apply_filters( 'woocommerce_get_price', $price );
}
Как я могу исключить суффикс цены для дополнительных продаж?
Я пробовал:
Код: Выделить всё
if( is_product() && !$woocommerce_loop['name'] == 'up-sells' )
Подробнее здесь: https://stackoverflow.com/questions/679 ... d-products