woocommerce_checkout_coupon_form

Output the Coupon form for the checkout.

Description

woocommerce_checkout_coupon_form(); 

Usage

  1. if ( !function_exists( 'woocommerce_checkout_coupon_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocommerce_checkout_coupon_form(); 
  7.  

Defined (1)

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

/includes/wc-template-functions.php  
  1. function woocommerce_checkout_coupon_form() { 
  2. wc_get_template( 'checkout/form-coupon.php', array( 'checkout' => WC()->checkout() ) );