Created
January 27, 2023 10:28
-
-
Save adrianovarlotta/7349e07921e9432df1ada81494f8e266 to your computer and use it in GitHub Desktop.
Woocommerce - display coupon add notice to another pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$coupons = WC()->cart->get_applied_coupons(); | |
if ( $coupons ) { | |
wc_print_notice( 'Coupon ' . implode( ', ', $coupons ) . ' has been applied to your cart.', 'notice' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment