Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp wc php remove product from cart if amount is 0

//Hide Price when Price is Zero
add_filter( 'woocommerce_get_price_html','maybe_hide_price',10,2);
function maybe_hide_price($price_html, $product){
     if($product->get_price()>0){
          return $price_html;
     }
     return '';
 } 
// End of above code
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wp #wc #php #remove #product #cart #amount
ADD COMMENT
Topic
Name
1+2 =