Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wc php coupon applied message still after coupon delete

add_filter( 'woocommerce_coupon_message', 'filter_woocommerce_coupon_message', 10, 3 );
function filter_woocommerce_coupon_message( $msg, $msg_code, $coupon ) {
    // $applied_coupons = WC()->cart->get_applied_coupons(); // Get applied coupons

    if( $msg === __( 'Coupon code applied successfully.', 'woocommerce' ) ) {
        $msg = sprintf( 
            __( "The %s promotion code has been applied and redeemed successfully.", "woocommerce" ), 
            '<strong>' . $coupon->get_code() . '</strong>' 
        );
    }

    return $msg;
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to create php message 00 
Php :: unisharp laravel, Tai anh? 
Php :: mongodb uploading csv php 
Php :: Movie Name -inurl:(htm|html|php|pls|txt) intitle:index.of "last modified" (mp4|wma|aac|avi) 
Php :: exists:categories,id except a value laravel 
Php :: how to use php variable in javascript file 
Php :: create global function laravel 
Php :: require_once in class php 
Php :: laravel read csv 
Php :: PHP Forms - Validate E-mail and URL 
Php :: /usr/local/bin/php /home/tbmholdingltd/public_html/tugent/php artisan schedule:run /dev/null 2&1 
Php :: bootstrap carousel foreach loop not working wordpressp php wp 
Php :: php curl fail verbosly 
Php :: controller run 
Php :: wp wc php change customer shipping country for all users 
Php :: php if class exists 
Php :: execcommand insert video 
Php :: codeigniter 4 get method deprecated 
Php :: Comment supprimer les avis sur les produits de votre boutique WooCommerce 
Php :: bitnami lightsail PHP Fatal error: Out of memory (allocated 
Php :: php pdo connect to database 
Php :: Php excel from Z to AA 
Php :: how to get count of rows in a table in laravel query 
Php :: sub() vs substr in php 
Php :: export data to excel in codeigniter using phpexcel 
Php :: how to link a external modules using href in php 
Php :: php include inside function global 
Php :: php isset tableau 
Php :: php magic __dir__ since ? 
Php :: cURL error 60 : SSL certificate in Larvel in pusher or facebook authentication 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =