evolve_woocommerce_before_checkout_form
The evolve evolve woocommerce before checkout form function.
Description
evolve_woocommerce_before_checkout_form( $args );
Parameters (1)
- 0. $args
- The args.
Usage
if ( !function_exists( 'evolve_woocommerce_before_checkout_form' ) ) { require_once '/library/woo-config.php'; } // The args. $args = null; // NOTICE! Understand what this does before running. $result = evolve_woocommerce_before_checkout_form($args);
Defined (1)
The function is defined in the following location(s).
- /library/woo-config.php
- function evolve_woocommerce_before_checkout_form($args) {
- global $woocommerce;
- ?>
- <ul class="woocommerce-side-nav woocommerce-checkout-nav">
- <li class="active">
- <a data-name="col-1" href="#">
- <?php _e('Billing Address', 'evolve'); ?>
- </a>
- </li>
- <?php if (WC()->cart->needs_shipping() && !WC()->cart->ship_to_billing_address_only()) : ?>
- <li>
- <a data-name="col-2" href="#">
- <?php _e('Shipping Address', 'evolve'); ?>
- </a>
- </li>
- <?php
- elseif (apply_filters('woocommerce_enable_order_notes_field', get_option('woocommerce_enable_order_comments', 'yes') === 'yes')) :
- if (!WC()->cart->needs_shipping() || WC()->cart->ship_to_billing_address_only()) :
- ?>
- <li>
- <a data-name="col-2" href="#">
- <?php _e('Additional Information', 'evolve'); ?>
- </a>
- </li>
- <?php
- endif;
- endif;
- ?>
- <li>
- <a data-name="#order_review" href="#">
- <?php _e('Review & Payment', 'evolve'); ?>
- </a>
- </li>
- </ul>
- <div class="woocommerce-content-box evolve-checkout">
- <?php
- }