woocommerce_checkout_coupon_form()WC 1.0

Output the Coupon form for the checkout.

No Hooks.

Return

null. Nothing (null).

Usage

woocommerce_checkout_coupon_form();

woocommerce_checkout_coupon_form() code WC 8.7.0

function woocommerce_checkout_coupon_form() {
	if ( is_user_logged_in() || WC()->checkout()->is_registration_enabled() || ! WC()->checkout()->is_registration_required() ) {
		wc_get_template(
			'checkout/form-coupon.php',
			array(
				'checkout' => WC()->checkout(),
			)
		);
	}
}