Похоже, плагин использует
Код: Выделить всё
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
Код: Выделить всё
remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10);
Код: Выделить всё
function make_surplus_price_always_visible(){
global $post;
$terms = wp_get_post_terms( $post->ID, 'product_cat' );
foreach ( $terms as $term ) $categories[] = $term->slug;
if ( in_array( 'surplus-allison-parts', $categories ) && !is_user_logged_in()) {
?>
alert('product in surplus');
Подробнее здесь: [url]https://stackoverflow.com/questions/46470433/woocommerce-product-price-visibility-add-price-back-only-for-a-specific-categor[/url]