evolve_woocommerce_checkout_billing

The evolve evolve woocommerce checkout billing function.

Description

evolve_woocommerce_checkout_billing( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'evolve_woocommerce_checkout_billing' ) ) { 
  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_checkout_billing($args); 
  9.  

Defined (1)

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

/library/woo-config.php  
  1. function evolve_woocommerce_checkout_billing($args) { 
  2. global $woocommerce; 
  3.  
  4. if (WC()->cart->needs_shipping() && !WC()->cart->ship_to_billing_address_only() || 
  5. apply_filters('woocommerce_enable_order_notes_field', get_option('woocommerce_enable_order_comments', 'yes') === 'yes') && (!WC()->cart->needs_shipping() || WC()->cart->ship_to_billing_address_only() ) 
  6. ) { 
  7. $data_name = 'col-2'; 
  8. } else { 
  9. $data_name = '#order_review'; 
  10. $evolve_woocommerce_option = get_option('evl_options'); 
  11. $woocommerce_one_page_checkout = $evolve_woocommerce_option['evl_woocommerce_one_page_checkout']; 
  12. if (!$woocommerce_one_page_checkout) { 
  13. ?> 
  14.  
  15. <a data-name="<?php echo $data_name; ?>" href="#" class="button default medium submit t4p-button-default continue-checkout"><?php _e('Continue', 'evolve'); ?></a> 
  16. <div class="clearboth"></div> 
  17.  
  18. <?php