| 1 |
<?php |
| 2 |
/** |
| 3 |
* Checkout Payment Section |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/payment.php. |
| 6 |
* |
| 7 |
* HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 |
* (the theme developer) will need to copy the new files to your theme to |
| 9 |
* maintain compatibility. We try to do this as little as possible, but it does |
| 10 |
* happen. When this occurs the version of the template file will be bumped and |
| 11 |
* the readme will list any important changes. |
| 12 |
* |
| 13 |
* @see https://docs.woocommerce.com/document/template-structure/ |
| 14 |
* @package WooCommerce\Templates |
| 15 |
* @version 3.5.3 |
| 16 |
*/ |
| 17 |
|
| 18 |
defined( 'ABSPATH' ) || exit; |
| 19 |
|
| 20 |
if ( ! wp_doing_ajax() ) { |
| 21 |
do_action( 'woocommerce_review_order_before_payment' ); |
| 22 |
} |
| 23 |
|
| 24 |
do_action( 'cartflows_woocommerce_review_order_before_payment' ); |
| 25 |
|
| 26 |
?> |
| 27 |
<div id="payment" class="woocommerce-checkout-payment"> |
| 28 |
<?php if ( WC()->cart->needs_payment() ) : ?> |
| 29 |
<ul class="wc_payment_methods payment_methods methods"> |
| 30 |
<?php |
| 31 |
if ( ! empty( $available_gateways ) ) { |
| 32 |
foreach ( $available_gateways as $gateway ) { |
| 33 |
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) ); |
| 34 |
} |
| 35 |
} else { |
| 36 |
echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>'; // @codingStandardsIgnoreLine |
| 37 |
} |
| 38 |
?> |
| 39 |
</ul> |
| 40 |
<?php endif; ?> |
| 41 |
<div class="form-row place-order"> |
| 42 |
<noscript> |
| 43 |
<?php |
| 44 |
/* translators: $1 and $2 opening and closing emphasis tags respectively */ |
| 45 |
printf( esc_html__( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the %1$sUpdate Totals%2$s button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ), '<em>', '</em>' ); |
| 46 |
?> |
| 47 |
<br/><button type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>"><?php esc_html_e( 'Update totals', 'woocommerce' ); ?></button> |
| 48 |
</noscript> |
| 49 |
|
| 50 |
<?php wc_get_template( 'checkout/terms.php' ); ?> |
| 51 |
|
| 52 |
<?php do_action( 'woocommerce_review_order_before_submit' ); ?> |
| 53 |
|
| 54 |
<?php echo apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ); // @codingStandardsIgnoreLine ?> |
| 55 |
|
| 56 |
<?php do_action( 'woocommerce_review_order_after_submit' ); ?> |
| 57 |
|
| 58 |
<?php wp_nonce_field( 'woocommerce-process_checkout', 'woocommerce-process-checkout-nonce' ); ?> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
<?php |
| 62 |
if ( ! wp_doing_ajax() ) { |
| 63 |
do_action( 'woocommerce_review_order_after_payment' ); |
| 64 |
} |
| 65 |
|