From: Chuck Scott Date: Tue, 20 Dec 2016 19:44:34 +0000 (-0500) Subject: Commented out the FedEx additions that were added to the theme's functions.php file. X-Git-Tag: v1.0.18^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fhotfix%2F1.0.18;p=WP-Themes%2FTomsMomsCookies.git Commented out the FedEx additions that were added to the theme's functions.php file. --- 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 */