| 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 |
|
| 25 |
<?php if ( ! wp_doing_ajax() ) : ?> |
| 26 |
<section> |
| 27 |
<h4 id="payment_method_title" class="sellkit-one-page-checkout-payment-heading heading"><?php echo __( 'Payment', 'sellkit' ); ?></h4> |
| 28 |
<p class="sellkit-one-page-checkout-payment-desc sub-heading"> |
| 29 |
<?php echo apply_filters( 'sellkit_core/widgets/checkout/custom_message/secure_transaction_text', __( 'All transactions are secure and encrypted.', 'sellkit' ) ); ?> |
| 30 |
</p> |
| 31 |
|
| 32 |
<?php endif; ?> |
| 33 |
|
| 34 |
<div id="payment" class="woocommerce-checkout-payment sellkit-one-page-checkout-payment-methods sellkit-checkout-widget-divider"> |
| 35 |
<?php if ( WC()->cart->needs_payment() ) : ?> |
| 36 |
<ul class="wc_payment_methods payment_methods methods"> |
| 37 |
<?php |
| 38 |
if ( ! empty( $available_gateways ) ) { |
| 39 |
foreach ( $available_gateways as $gateway ) { |
| 40 |
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) ); |
| 41 |
echo '<hr class="sellkit-checkout-widget-divider">'; |
| 42 |
} |
| 43 |
} else { |
| 44 |
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 |
| 45 |
} |
| 46 |
?> |
| 47 |
</ul> |
| 48 |
<?php endif; ?> |
| 49 |
</div> |
| 50 |
|
| 51 |
<?php |
| 52 |
if ( ! wp_doing_ajax() ) { |
| 53 |
echo '</section>'; |
| 54 |
do_action( 'woocommerce_review_order_after_payment' ); |
| 55 |
} |
| 56 |
|