Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
:
klarna-checkout.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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() ); ?>