checkout() * @var $is_builder bool */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'This script cannot be accessed directly.' ); } $has_shipping = true === WC()->cart->needs_shipping_address(); if ( $is_builder && ! $has_shipping ) { $info_msg = __( 'Maybe your cart is empty Or The shipping address needs to enable. Please enable it first from the woocommerce settings page.', 'shopbuilder' ); echo '

' . esc_html( $info_msg ) . '

'; } $wrapper_class = ! empty( $controllers['fields_width_100'] ) ? 'rtsb-form-fields-width-100' : ''; ?>

get_checkout_fields( 'shipping' ); foreach ( $fields as $key => $field ) { woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); } ?>