From bdba9d05b0754c1891fb8e3846b0f451e599bcbd Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 20 Dec 2016 14:44:34 -0500 Subject: [PATCH] Commented out the FedEx additions that were added to the theme's functions.php file. --- functions.php | 8 +++++++- style.css | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index ab24780..c3177b9 100755 --- a/functions.php +++ b/functions.php @@ -155,6 +155,7 @@ function tm_added_checkout_fields( $checkout ) { echo ''; +/* echo '

' . __('FedEx Shipping') . '

'; woocommerce_form_field( 'tm_fedex_shipping', array( @@ -165,6 +166,7 @@ function tm_added_checkout_fields( $checkout ) { ), $checkout->get_value( 'tm_fedex_shipping' )); echo '
'; +*/ } @@ -178,9 +180,11 @@ function tm_added_checkout_fields_order_meta( $order_id ) { update_post_meta( $order_id, 'Gift Message', sanitize_text_field( $_POST['tm_gift_message'] ) ); } +/* if ( ! empty( $_POST['tm_fedex_shipping'] ) ) { update_post_meta( $order_id, 'FedEx Shipping', sanitize_text_field( $_POST['tm_fedex_shipping'] ) ); } +*/ } @@ -188,7 +192,7 @@ function tm_added_checkout_fields_order_meta( $order_id ) { add_filter('woocommerce_email_order_meta_keys', 'tm_added_checkout_fields_email'); function tm_added_checkout_fields_email( $keys ) { $keys[] = 'Gift Message'; - $keys[] = 'FedEx Shipping'; +// $keys[] = 'FedEx Shipping'; return $keys; } @@ -201,12 +205,14 @@ function add_custom_fields_to_order_printout( $fields, $order ) { 'value' => get_post_meta( $order->id, 'Gift Message', true ) ); } +/* if( get_post_meta( $order->id, 'FedEx Shipping', true ) ) { $new_fields['FedEx Shipping'] = array( 'label' => 'FedEx Shipping', 'value' => get_post_meta( $order->id, 'FedEx Shipping', true ) ); } +*/ return array_merge( $fields, $new_fields ); } add_filter( 'wcdn_order_info_fields', 'add_custom_fields_to_order_printout', 10, 2 ); diff --git a/style.css b/style.css index 71fcf37..e0e6285 100755 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: Tom's Mom's Cookies Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme made for Tom's Mom's Cookies. -Version: 1.0.17 +Version: 1.0.18 */ -- 2.17.1