| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template variables: |
| 4 |
* |
| 5 |
* @var $controllers array Widgets/Addons Settings |
| 6 |
* @var $checkout Object WC()->checkout() |
| 7 |
*/ |
| 8 |
|
| 9 |
// Do not allow directly accessing this file. |
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit( 'This script cannot be accessed directly.' ); |
| 12 |
} |
| 13 |
?> |
| 14 |
<div class="rtsb-form-order-note"> |
| 15 |
<div class="woocommerce-additional-fields"> |
| 16 |
<?php do_action( 'woocommerce_before_order_notes', $checkout ); ?> |
| 17 |
|
| 18 |
<?php if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) : ?> |
| 19 |
|
| 20 |
<?php if ( ! WC()->cart->needs_shipping() || wc_ship_to_billing_address_only() ) : ?> |
| 21 |
|
| 22 |
<h3><?php esc_html_e( 'Additional information', 'shopbuilder' ); ?></h3> |
| 23 |
|
| 24 |
<?php endif; ?> |
| 25 |
|
| 26 |
<div class="woocommerce-additional-fields__field-wrapper"> |
| 27 |
<?php foreach ( $checkout->get_checkout_fields( 'order' ) as $key => $field ) : ?> |
| 28 |
<?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?> |
| 29 |
<?php endforeach; ?> |
| 30 |
</div> |
| 31 |
|
| 32 |
<?php endif; ?> |
| 33 |
|
| 34 |
<?php do_action( 'woocommerce_after_order_notes', $checkout ); ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
|