Hello,
Follow this step to create two columns layout of the checkout page,
Step-1:
=> Create a woocommerce
named folder into your active theme. Open woocommerce
folder and create a checkout
named folder.
Step-2:
=> Open the checkout
folder and copy the form-checkout.php
file from your plugins directory(/plugins/woocommerce/templates/checkout/form-checkout.php)
and paste the file into your theme(/themes/yourtheme/woocommerce/checkout)
.
Step-3:
=> Now, Open your form-checkout.php
file which is placed into your themes folder.
Step-4:
=> Remove this code from line no.: 52 – 62
<?php do_action( 'woocommerce_checkout_before_order_review_heading' ); ?>
<h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'woocommerce' ); ?></h3>
<?php do_action( 'woocommerce_checkout_before_order_review' ); ?>
<div id="order_review" class="woocommerce-checkout-review-order">
<?php do_action( 'woocommerce_checkout_order_review' ); ?>
</div>
<?php do_action( 'woocommerce_checkout_after_order_review' ); ?>
Step-5:
=> You can see this code into your file(line no.:38 – 46),
<div class="col2-set" id="customer_details">
<div class="col-1">
<?php do_action( 'woocommerce_checkout_billing' ); ?>
</div>
<div class="col-2">
<?php do_action( 'woocommerce_checkout_shipping' ); ?>
</div>
</div>
Step-6:
=> Replace above code with this code,
<div class="col2-set" id="customer_details">
<div class="col-1">
<?php do_action( 'woocommerce_checkout_billing' ); ?>
<?php do_action( 'woocommerce_checkout_shipping' ); ?>
</div>
<div class="col-2">
<?php do_action( 'woocommerce_checkout_before_order_review_heading' ); ?>
<h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'woocommerce' ); ?></h3>
<?php do_action( 'woocommerce_checkout_before_order_review' ); ?>
<div id="order_review" class="woocommerce-checkout-review-order">
<?php do_action( 'woocommerce_checkout_order_review' ); ?>
</div>
<?php do_action( 'woocommerce_checkout_after_order_review' ); ?>
</div>
</div>
Thanks!