diff --git a/includes/admin/post-types/meta-boxes/views/html-order-shipping.php b/includes/admin/post-types/meta-boxes/views/html-order-shipping.php index 7e29a7c1e81..17c971abcbf 100644 --- a/includes/admin/post-types/meta-boxes/views/html-order-shipping.php +++ b/includes/admin/post-types/meta-boxes/views/html-order-shipping.php @@ -38,6 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

+ ×
- \ No newline at end of file + diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 4efb4433a4b..31bdebdba66 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -320,6 +320,7 @@ class WC_Checkout { if ( $item_id ) { wc_add_order_item_meta( $item_id, 'method_id', $method->id ); wc_add_order_item_meta( $item_id, 'cost', wc_format_decimal( $method->cost ) ); + do_action( 'woocommerce_add_shipping_order_item', $order_id, $item_id, $i ); } } }