PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.0
ShopBuilder – WooCommerce Builder For Elementor v2.1.0
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / checkout / shipping-form.php

shipping-form.php in ShopBuilder – WooCommerce Builder For Elementor 2.1.0, at templates/elementor/checkout/shipping-form.php

51 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template variables:
4 *
5 * @var $controllers array Widgets/Addons Settings
6 * @var $checkout Object WC()->checkout()
7 * @var $is_builder bool
8 */
9
10 // Do not allow directly accessing this file.
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit( 'This script cannot be accessed directly.' );
13 }
14
15
16 $has_shipping = true === WC()->cart->needs_shipping_address();
17
18 if ( $is_builder && ! $has_shipping ) {
19 $info_msg = __( 'Maybe your cart is empty Or The shipping address needs to enable. Please enable it first from the woocommerce settings page.', 'shopbuilder' );
20 echo '<p>' . esc_html( $info_msg ) . '</p>';
21 }
22 ?>
23 <?php if ( $has_shipping ) : ?>
24 <div class="rtsb-form-shipping">
25 <div class="woocommerce-shipping-fields">
26 <h3 id="ship-to-different-address">
27 <label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">
28 <input id="ship-to-different-address-checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" <?php checked( apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ), 1 ); ?> type="checkbox" name="ship_to_different_address" value="1" /> <span><?php esc_html_e( 'Ship to a different address?', 'shopbuilder' ); ?></span>
29 </label>
30 </h3>
31 <div class="shipping_address">
32
33 <?php do_action( 'woocommerce_before_checkout_shipping_form', $checkout ); ?>
34
35 <div class="woocommerce-shipping-fields__field-wrapper">
36 <?php
37 $fields = $checkout->get_checkout_fields( 'shipping' );
38
39 foreach ( $fields as $key => $field ) {
40 woocommerce_form_field( $key, $field, $checkout->get_value( $key ) );
41 }
42 ?>
43 </div>
44
45 <?php do_action( 'woocommerce_after_checkout_shipping_form', $checkout ); ?>
46
47 </div>
48 </div>
49 </div>
50 <?php endif; ?>
51