🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:form-checkout.php
<?php /** * Checkout Form * * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-checkout.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 9.4.0 * @xstore-version 9.4.3 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php $elementor_checkout_builder = apply_filters('etheme_elementor_checkout_page', false); if ( !$elementor_checkout_builder && get_query_var('et_is-cart-checkout-advanced', false ) ) { wc_get_template( 'checkout/form-checkout-'.get_query_var('et_cart-checkout-layout', 'default').'.php', array( 'checkout' => $checkout ) ); return; } ?> <?php wc_print_notices(); ?> <div class="before-checkout-form"> <?php do_action( 'woocommerce_before_checkout_form', $checkout ); ?> </div> <?php // If checkout registration is disabled and not logged in, the user cannot checkout if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! get_query_var( 'et_is-loggedin', false) ) { echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'xstore' ) ) ); return; } // filter hook for include new pages inside the payment method $get_checkout_url = apply_filters( 'woocommerce_get_checkout_url', wc_get_checkout_url() ); ?> <form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data" aria-label="<?php echo esc_attr__( 'Checkout', 'xstore' ); ?>"> <?php if ( !$elementor_checkout_builder ) : ?> <div class="row"> <div class="col-md-7 clearfix"> <?php endif; ?> <?php if ( sizeof( $checkout->checkout_fields ) > 0 ) : ?> <?php do_action( 'woocommerce_checkout_before_customer_details' ); ?> <div 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> <?php do_action( 'woocommerce_checkout_after_customer_details' ); ?> <?php endif; ?> <?php if ( !$elementor_checkout_builder ) : ?> </div> <?php endif; ?> <div class="<?php if ( !$elementor_checkout_builder ) : ?>col-md-5 <?php endif; ?>cart-order-details"> <div class="order-review"> <<?php echo apply_filters('etheme_woocommerce_checkout_title_tag', 'h3'); ?> class="<?php echo apply_filters('etheme_woocommerce_checkout_title_class', 'step-title'); ?>"><span><?php esc_html_e( 'Your order', 'xstore' ); ?></span></<?php echo apply_filters('etheme_woocommerce_checkout_title_tag', '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> <?php if ( !$elementor_checkout_builder ) : ?> </div> <!-- end row --> <?php endif; ?> </form> <?php do_action( 'woocommerce_after_checkout_form', $checkout ); ?>
Save Changes
Cancel
Create New File
Create New Folder