evolve_woocommerce_checkout_coupon_form

The evolve evolve woocommerce checkout coupon form function.

Description

evolve_woocommerce_checkout_coupon_form( $args ); 

Parameters (1)

0. $args
The args.

Usage

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

Defined (1)

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

/library/woo-config.php  
  1. function evolve_woocommerce_checkout_coupon_form($args) { 
  2. global $woocommerce; 
  3.  
  4. if (!WC()->cart->coupons_enabled()) 
  5. return; 
  6. ?> 
  7.  
  8. <form class="woocommerce-content-box full-width checkout_coupon" method="post"> 
  9.  
  10. <h2 class="promo-code-heading alignleft"><?php _e('Have A Promotional Code?', 'evolve'); ?></h2> 
  11.  
  12. <div class="coupon-contents alignright"> 
  13. <div class="form-row form-row-first alignleft coupon-input"> 
  14. <input type="text" name="coupon_code" class="input-text" placeholder="<?php _e('Coupon code', 'evolve'); ?>" id="coupon_code" value="" /> 
  15. </div> 
  16.  
  17. <div class="form-row form-row-last alignleft coupon-button"> 
  18. <input type="submit" class="button" name="apply_coupon" value="<?php _e('Apply Coupon', 'evolve'); ?>" /> 
  19. </div> 
  20.  
  21. <div class="clear"></div> 
  22. </div> 
  23. </form> 
  24. <?php