initial docker setup

This commit is contained in:
GotPPay
2018-06-14 16:49:28 +02:00
parent bc80b7342e
commit b5f87f27f8
3023 changed files with 985078 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
<?php
/**
* Klarna Checkout fallback order received page, used when WC checkout form submission fails.
*
* Overrides /checkout/thankyou.php.
*
* @package klarna-checkout-for-woocommerce
*/
if ( ! WC()->session->get( 'kco_wc_order_id' ) ) {
return;
}
wc_empty_cart();
kco_wc_show_snippet();

View File

@@ -0,0 +1,30 @@
<?php
/**
* Klarna Checkout page
*
* Overrides /checkout/form-checkout.php.
*
* @package klarna-checkout-for-woocommerce
*/
wc_print_notices();
do_action( 'kco_wc_before_checkout_form' );
?>
<form name="checkout" class="checkout woocommerce-checkout">
<div id="kco-wrapper">
<div id="kco-order-review">
<?php do_action( 'kco_wc_before_order_review' ); ?>
<?php 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>
</form>
<?php do_action( 'kco_wc_after_checkout_form' ); ?>