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

  1. if ( !function_exists( 'evolve_woocommerce_before_checkout_form' ) ) { 
  2. require_once '/library/woo-config.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolve_woocommerce_before_checkout_form($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/library/woo-config.php  
  1. function evolve_woocommerce_before_checkout_form($args) { 
  2. global $woocommerce; 
  3. ?> 
  4.  
  5. <ul class="woocommerce-side-nav woocommerce-checkout-nav"> 
  6. <li class="active"> 
  7. <a data-name="col-1" href="#"> 
  8. <?php _e('Billing Address', 'evolve'); ?> 
  9. </a> 
  10. </li> 
  11. <?php if (WC()->cart->needs_shipping() && !WC()->cart->ship_to_billing_address_only()) : ?> 
  12. <li> 
  13. <a data-name="col-2" href="#"> 
  14. <?php _e('Shipping Address', 'evolve'); ?> 
  15. </a> 
  16. </li> 
  17. <?php 
  18. elseif (apply_filters('woocommerce_enable_order_notes_field', get_option('woocommerce_enable_order_comments', 'yes') === 'yes')) : 
  19.  
  20. if (!WC()->cart->needs_shipping() || WC()->cart->ship_to_billing_address_only()) : 
  21. ?> 
  22.  
  23. <li> 
  24. <a data-name="col-2" href="#"> 
  25. <?php _e('Additional Information', 'evolve'); ?> 
  26. </a> 
  27. </li> 
  28. <?php 
  29. endif; 
  30. endif; 
  31. ?> 
  32.  
  33. <li> 
  34. <a data-name="#order_review" href="#"> 
  35. <?php _e('Review & Payment', 'evolve'); ?> 
  36. </a> 
  37. </li> 
  38. </ul> 
  39.  
  40. <div class="woocommerce-content-box evolve-checkout"> 
  41.  
  42. <?php