P
P
PM2018-07-10 16:52:32
WordPress
PM, 2018-07-10 16:52:32

How to remove shipping cost in woocommerce?

Good day, dear ones!
Help in resolving the issue. You need to completely disable the display of shipping costs on all woocommerce pages:

  1. Basket
  2. Checkout
  3. Order information page, after order confirmation
  4. Email template

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DimDim7778, 2018-08-13
@jimmykoks

Hello.
Here is the solution:

add_filter('woocommerce_cart_shipping_method_full_label','remove_local_pickup_free_label', 10, 2); 
function remove_local_pickup_free_label($full_label, $method){ 
    $full_label = substr($full_label, 0, strpos($full_label, ':')); 
    return $full_label; 
}

You need to add themes to functions.php and that's it.

K
kosalex, 2018-09-13
@kosalex

DimDim7778
should this be added to the theme's functions.php? Where should the challenge be added?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question