Advertisement
Fany_VanDaal

Skrytí dopravy v košíku

Nov 2nd, 2019
407
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None
  1. function disable_shipping_calc_on_cart( $show_shipping ) {
  2.     if( is_cart() ) {
  3.         return false;
  4.     }
  5.     return $show_shipping;
  6. }
  7. add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'disable_shipping_calc_on_cart', 99 );
Advertisement
RAW Paste Data Copied
Advertisement