PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
wpfunnels / public / modules / checkout / templates / multi-step-checkout.php

multi-step-checkout.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.13.3, at public/modules/checkout/templates/multi-step-checkout.php

110 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Checkout Form
4 *
5 * This is an overridden copy of the woocommerce/templates/checkout/form-checkout.php file.
6 *
7 * @package
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13 ?>
14
15 <div class="rex-multistep-checkout">
16 <?php
17
18 // If checkout registration is disabled and not logged in, the user cannot checkout.
19 if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) {
20 echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'wpfnl' ) ) );
21 return;
22 }
23
24 ?>
25
26 <ul class="checkout-steps">
27 <?php if ( WC()->cart && WC()->cart->needs_shipping_address() ) : ?>
28 <li class="shipping"><a href="#shipping"><span class="step-number">1</span><span class="title"><?php esc_html_e( 'Shipping Details', 'wpfnl' ); ?></span></a></li>
29 <li class="billing"><a href="#billing"><span class="step-number">2</span><span class="title"><?php esc_html_e( 'Billing Details', 'wpfnl' ); ?></span></a></li>
30 <li class="review"><a href="#review"><span class="step-number">3</span><span class="title"><?php esc_html_e( 'Your order', 'wpfnl' ); ?></span></a></li>
31 <?php else : ?>
32 <li class="billing"><a href="#billing"><span class="step-number">1</span><span class="title"><?php esc_html_e( 'Billing Details', 'wpfnl' ); ?></span></a></li>
33 <li class="review"><a href="#review"><span class="step-number">2</span><span class="title"><?php esc_html_e( 'Your order', 'wpfnl' ); ?></span></a></li>
34 <?php endif; ?>
35 </ul>
36
37 <div class="woocommerce-checkout-coupon-form">
38 <?php do_action( 'rex__woocommerce_checkout_coupon_form' ); ?>
39 </div>
40
41 <form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data">
42 <input type="hidden" name="wpfnl_step_id" value="<?php echo esc_attr( get_the_ID() ); ?>" />
43
44 <div class="multistep-wrapper" id="rex-checkout-tabs">
45 <?php if ( WC()->cart && WC()->cart->needs_shipping_address() ) : ?>
46 <div class="single-step" id="shipping">
47 <?php
48 if ( $checkout->get_checkout_fields() ) {
49 do_action( 'woocommerce_checkout_before_customer_details' );
50 do_action( 'woocommerce_checkout_shipping' );
51 }
52 ?>
53
54 <div class="navigation">
55 <button type="button" id="shippingNext"><?php echo __( 'Next', 'wpfnl' ); ?></button>
56 </div>
57 </div>
58
59 <div class="single-step" id="billing">
60 <?php
61 if ( $checkout->get_checkout_fields() ) {
62 do_action( 'woocommerce_checkout_billing' );
63 do_action( 'woocommerce_checkout_after_customer_details' );
64 }
65 ?>
66
67 <div class="navigation">
68 <button type="button" id="billingPrevious"><?php echo __( 'Previous', 'wpfnl' ); ?></button>
69 <button type="button" id="billingNext"><?php echo __( 'Next', 'wpfnl' ); ?></button>
70 </div>
71 </div>
72 <?php else : ?>
73 <div class="single-step" id="billing">
74 <?php
75 if ( $checkout->get_checkout_fields() ) {
76 do_action( 'woocommerce_checkout_before_customer_details' );
77 do_action( 'woocommerce_checkout_billing' );
78 do_action( 'woocommerce_checkout_after_customer_details' );
79 }
80 ?>
81
82 <div class="navigation">
83 <button type="button" id="billingNext"><?php echo __( 'Next', 'wpfnl' ); ?></button>
84 </div>
85 </div>
86 <?php endif; ?>
87
88 <div class="single-step" id="review">
89 <?php do_action( 'woocommerce_checkout_before_order_review' );
90 ?>
91
92 <div id="order_review" class="woocommerce-checkout-review-order">
93 <?php do_action( 'woocommerce_checkout_order_review' ); ?>
94 </div>
95 <?php do_action( 'woocommerce_checkout_after_order_review' );
96 ?>
97
98 <div class="navigation">
99 <button type="button" id="reviewPrevious"><?php echo __( 'Previous', 'wpfnl' ); ?></button>
100 </div>
101 </div>
102 </div>
103 <!--/multistep-wrapper-->
104
105 </form>
106
107 <?php do_action( 'woocommerce_after_checkout_form', $checkout ); ?>
108
109 </div>
110