Merge pull request #1313 from maxrice/master

hide the order comments box on the admin order page if order comments are disabled
This commit is contained in:
Mike Jolley 2012-07-28 14:56:10 -07:00
commit 0e885a61ea
1 changed files with 3 additions and 1 deletions

View File

@ -82,9 +82,11 @@ function woocommerce_order_data_meta_box($post) {
?>
</select></p>
<?php if( get_option( 'woocommerce_enable_order_comments' ) != 'no' ) : ?>
<p class="form-field form-field-wide"><label for="excerpt"><?php _e('Customer Note:', 'woocommerce') ?></label>
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php _e('Customer\'s notes about the order', 'woocommerce'); ?>"><?php echo $post->post_excerpt; ?></textarea></p>
<?php endif; ?>
<?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); ?>
</div>