PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.12.13
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.12.13
3.13.4 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 All 262 releases
wpfunnels / woocommerce / templates / checkout / form-checkout.php

form-checkout.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.12.13, at woocommerce/templates/checkout/form-checkout.php

34 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $wpfunnels_dir = dirname( dirname( dirname( __FILE__ ) ) );
3 if ( ! defined( 'WPFNL_DIR' ) ) {
4 define( 'WPFNL_DIR', $wpfunnels_dir );
5 }
6
7 $checkout_layout = '';
8 if( class_exists( '\WPFunnels\Wpfnl_functions' ) && \WPFunnels\Wpfnl_functions::is_wpfnl_pro_activated() && isset( $_SESSION[ 'checkout_layout' ] ) && 'wpfnl-express-checkout' === $_SESSION[ 'checkout_layout' ] ) {
9 $checkout_layout = $_SESSION[ 'checkout_layout' ];
10 unset( $_SESSION[ 'checkout_layout' ] );
11 // load when funnel checkout step is express checkout
12 require_once WPFNL_DIR . '/public/modules/checkout/templates/express-checkout-form.php';
13
14 } else if( class_exists( '\WPFunnels\Wpfnl_functions' ) && \WPFunnels\Wpfnl_functions::is_wpfnl_pro_activated() && isset( $_SESSION[ 'checkout_layout' ] ) && 'wpfnl-2-step' === $_SESSION[ 'checkout_layout' ] ) {
15 $checkout_layout = $_SESSION[ 'checkout_layout' ];
16 unset( $_SESSION[ 'checkout_layout' ] );
17
18 require_once WPFNL_DIR . '/public/modules/checkout/templates/two-step-checkout.php';
19
20 } else if( isset( $_SESSION[ 'checkout_layout' ] ) && ('wpfnl-modern-checkout' === $_SESSION[ 'checkout_layout' ]) || ('wpfnl-modern-one-column' === $_SESSION[ 'checkout_layout' ]) ) {
21 require_once WPFNL_DIR . '/public/modules/checkout/templates/modern-checkout-form.php';
22
23 } else {
24 if ( isset( $_SESSION[ 'checkout_layout' ] ) && ('wpfnl-modern-multistep' === $_SESSION[ 'checkout_layout' ]) ) {
25 require_once WPFNL_DIR . '/public/modules/checkout/templates/modern-checkout-form.php';
26
27 }else {
28 require_once WPFNL_DIR . '/public/modules/checkout/templates/default-checkout-form.php';
29 }
30
31 }
32 // session_destroy();
33 ?>
34