Flat Rate Shipping
-
Hi,
Sorry if this seems obvious, i’m a newbie to wp and trying to find my way around it.
I’m setting up woocommerce shipping methods. Flat Rate is all i need, but i want to change the cost of shipping based on total order. I suppose i should hook into the flat rate method. as i checked there is this “woocommerce_flat_rate_shipping_add_rate” action (with a sample to add new method here), but i wonder if i can change $rate[‘cost’] there too? I tried something like this and it didn’t work out:function add_another_custom_flat_rate( $method, $rate ) { if(order-total>100){ $rate['cost'] = 0; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Flat Rate Shipping’ is closed to new replies.