From 9a2b801e7b38152271a55d9664a89d71244a1a0e Mon Sep 17 00:00:00 2001 From: justinstern Date: Mon, 30 Dec 2013 18:59:09 -0500 Subject: [PATCH] A Pair of Useful Shipping Related Actions --- .../admin/post-types/meta-boxes/views/html-order-shipping.php | 3 ++- includes/class-wc-checkout.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 ); } } }