Questions tagged [shipping-method]

This tag is used in e-commerce essentially. A "shipping method" define basic shipping behaviors and allow some specific settings related to naming, conditional rates (pricing), and other additional settings.

Shipping Methods are used in e-commerce.

A "shipping method" has a basic specific shipping behavior and allow some specific settings related to naming, conditional rates and other additional settings.

Then each "shipping method" has specific shipping rules and shipping pricing defined for each Shipping Zone.

Additionally some Shipping methods handle Shipping classes that can be linked specifically to some products.

329 questions
24
votes
1 answer

Add custom field to shipping zone form - Woocommerce

I am trying to add a select field to Woocommerce Shipping tab and to Shipping Zones section of it while creating a new shipping zone. I found this on official documentation of Woocommerce while searching for the solution. What I've tried so far…
13
votes
1 answer

Get orders shipping items details in WooCommerce 3

How can I get the order shipping method id.? For example 'flate_rate'. Since WooCommerce 3 it is now complicated as everything has changed. I have tried it with $order->get_data() in a foreach loop but the data is protected.
Konstantinos E.
  • 155
  • 1
  • 2
  • 8
7
votes
3 answers

Calculate shipping methods/rates within an existing order in WooCommerce

I am essentially trying to replicate functionality like on the cart page where a user can add their zip code and it calculates available shipping rates, but I'm trying to do it from the back-end from within an already-created order. I could not find…
zen
  • 1,115
  • 3
  • 28
  • 54
7
votes
2 answers

Add an additional cost to flat rate shipping each 3 items in Woocommerce

I'm running a woocommerce shop and using a Flat Rate shipping $15. I have written a formula to add $1.25 for each additional item. 13.50 + ( 1.25 * [qty]) Sipping "flat rate settings | $1.25 for Additional Each Item: But I want to add this cost…
7
votes
2 answers

Hide shipping methods for specific shipping class in WooCommerce

Essentially I'm trying to make the flat rate method Id flat_rate:7 disabled when there is cart items that have the shipping class "Roller" (ID 92). This is the code I tried: add_filter('woocommerce_package_rates',…
Niklas Buschner
  • 354
  • 1
  • 3
  • 19
6
votes
1 answer

WooCommerce shipping methods based on user roles and subtotal amount

I need to add two different shipping rates, depending on the role of the user making the purchase. I have a role that is 'wholesale_customer' and should not pay shipping costs. However, the purchase must be prevented and a message added at Checkout…
gemita
  • 2,686
  • 2
  • 10
  • 17
6
votes
1 answer

How to retrieve Shipping Method of an Order in WooCommerce?

I am developing an eCommerce website on Wordpress using WooCommerce. I want to retrieve and display the 'Shipping Method' (i.e. Delivery or Collection etc.), that the customer had selected at the time of checkout, on the Order Confirmation page…
M. Khan
  • 105
  • 2
  • 7
6
votes
1 answer

Add a shipping to an order programmatically in Woocommerce 3

I've been trying numerous solutions to programmatically set the price of shipping (per order) via Woocommerce. I'm having no luck I have tried overwriting the meta value for the item: update_post_meta( $woo_order_id, '_order_shipping',…
Callum
  • 554
  • 2
  • 7
  • 18
5
votes
0 answers

WooCommerce calculate shipping via REST API

My implementation in app is just like my WooCommerce website. I want to achieve following points for calculating shipping: Check if address is required or not for calculating shipping address? If address is entered by user, how to check if this…
AndiM
  • 2,196
  • 2
  • 21
  • 38
5
votes
1 answer

Refresh cached shipping methods on checkout update ajax event in Woocommerce

i just implemented a custom shipping solution. It depends on the total price of items in the cart. For example: if total is < 20 -> display free shipping if total is >= 20 -> paid delivery But i have a problem with woocommerce cache...I think…
KeySee
  • 760
  • 1
  • 12
  • 26
5
votes
2 answers

Change shipping class based on cart items shipping class count in Woocommerce

I'm having trouble with the default WooCommerce shipping class settings. We have a small webshop with 2 shipping costs. One for products that fit in the mailbox, and other that don't. We would like to make a setting that if there are 2 products with…
Bas
  • 81
  • 3
5
votes
1 answer

Where are stored the settings of each shipping method in WooCommerce?

I have two separate e-commerce platforms. A large, old system that drives all the orders and dispatch. An online store powered by WordPress / WooCommerce. So far, we've managed to automate a lot of simple things like pulling orders from WP, and…
Mongo0se
  • 173
  • 2
  • 11
5
votes
1 answer

Add a checkbox below a specific shipping method in WooCommerce 3

I'm trying to customize the WC checkout page. In my checkout page I've set 2 shipping methods. My goal is to add a custom field down below the first shipping method. To achieve this I used the hook I mentioned…
5
votes
2 answers

Custom Flat Rate Description Text in Woocommerce checkout page

I have two flat rate shipping methods set up within Shipping Zones. At the checkout both of these shipping methods are available. I'd like to display a text description under each flat rate shipping option. There doesn't seem to be any options to do…
Future Webs
  • 229
  • 4
  • 17
5
votes
1 answer

Get the Cart shipping label and cost in Woocommerce

I need to display the shipping cost in other side of cart page. I tried: cart->get_cart_shipping_total(); echo $current_shipping_cost; ?> But print value nad don't title of shipping cost, because i use as title:…
delfinoweb
  • 103
  • 1
  • 3
  • 9
1
2 3
21 22