Remove block with the notice
-
Hello,
I need to remove blocks with the notice from product loop page(please see the photo) if any product has status “Out of stock”
I made an hook for that but it doesn’t work for me. Could you help me to solve this issue?Here is the hook:
function loop_page_html($estimate){
global $product;
if(!$product->is_in_stock( )) {
unset ($estimate);
return ($estimate);
}
}
add_filter(‘pi_loop_page_date_format’, ‘loop_page_html’);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove block with the notice’ is closed to new replies.