File "klarna-checkout.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/themes/kapee-child/klarna-checkout.php
File size: 1.37 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Klarna Checkout page
*
* Overrides /checkout/form-checkout.php.
*
* @package klarna-checkout-for-woocommerce
*/
do_action( 'woocommerce_before_checkout_form', WC()->checkout() );
// If checkout registration is disabled and not logged in, the user cannot checkout.
if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) {
echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ) );
return;
}
$settings = get_option( 'woocommerce_kco_settings' );
?>
<form name="checkout" class="checkout woocommerce-checkout kco-checkout">
<?php do_action( 'kco_wc_before_wrapper' ); ?>
<div id="kco-wrapper">
<div id="kco-order-review">
<?php do_action( 'kco_wc_before_order_review' ); ?>
<?php
if ( ! isset( $settings['show_subtotal_detail'] ) || in_array( $settings['show_subtotal_detail'], array( 'woo', 'both' ), true ) ) {
woocommerce_order_review();
}
?>
<?php do_action( 'kco_wc_after_order_review' ); ?>
</div>
<div id="kco-iframe">
<?php do_action( 'kco_wc_before_snippet' ); ?>
<?php kco_wc_show_snippet(); ?>
<?php do_action( 'kco_wc_after_snippet' ); ?>
</div>
</div>
<?php do_action( 'kco_wc_after_wrapper' ); ?>
</form>
<?php do_action( 'woocommerce_after_checkout_form', WC()->checkout() ); ?>