Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | public static function output( $post ) { |
||
23 | global $post; |
||
24 | |||
25 | $args = array( |
||
26 | 'order_id' => $post->ID, |
||
27 | ); |
||
28 | |||
29 | $notes = wc_get_order_notes( $args ); |
||
30 | |||
31 | include 'views/html-order-notes.php'; |
||
32 | ?> |
||
33 | <div class="add_note"> |
||
34 | <p> |
||
35 | <label for="add_order_note"><?php esc_html_e( 'Add note', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Add a note for your reference, or add a customer note (the user will be notified).', 'woocommerce' ) ); ?></label> |
||
36 | <textarea type="text" name="order_note" id="add_order_note" class="input-text" cols="20" rows="5"></textarea> |
||
37 | </p> |
||
38 | <p> |
||
39 | <label for="order_note_type" class="screen-reader-text"><?php esc_html_e( 'Note type', 'woocommerce' ); ?></label> |
||
40 | <select name="order_note_type" id="order_note_type"> |
||
41 | <option value=""><?php esc_html_e( 'Private note', 'woocommerce' ); ?></option> |
||
42 | <option value="customer"><?php esc_html_e( 'Note to customer', 'woocommerce' ); ?></option> |
||
43 | </select> |
||
44 | <button type="button" class="add_note button"><?php esc_html_e( 'Add', 'woocommerce' ); ?></button> |
||
45 | </p> |
||
46 | </div> |
||
47 | <?php |
||
48 | } |
||
49 | } |
||
50 |