evolve_woocommerce_cart_collaterals

The evolve evolve woocommerce cart collaterals function.

Description

evolve_woocommerce_cart_collaterals( $args ); 

Parameters (1)

0. $args
The args.

Usage

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

Defined (1)

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

/library/woo-config.php  
  1. function evolve_woocommerce_cart_collaterals($args) { 
  2. global $woocommerce; 
  3. ?> 
  4.  
  5. <div class="shipping-coupon"> 
  6.  
  7. <?php 
  8.  
  9. if (WC()->cart->coupons_enabled()) { 
  10. ?> 
  11. <div class="coupon"> 
  12.  
  13. <h2><?php _e('Have A Promotional Code?', 'evolve'); ?></h2> 
  14.  
  15. <input name="coupon_code" type="text" class="input-text" id="coupon_code" value="" placeholder="<?php _e('Coupon code', 'evolve'); ?>" /> 
  16. <input type="submit" class="button medium default" name="apply_coupon" value="<?php _e('Apply', 'evolve'); ?>" /> 
  17.  
  18. <?php do_action('woocommerce_cart_coupon'); ?> 
  19.  
  20. </div> 
  21. <?php 
  22. ?> 
  23. </div> 
  24. <?php