Change coupon code label in WooCommerce cart totals

//Coupon Code label in checkout and cart pages
function modify_coupon_label_cart_totals( $sprintf, $coupon ) { 
    return 'Sconto '.$coupon->code;
add_filter('woocommerce_cart_totals_coupon_label', 'modify_coupon_label_cart_totals', 10, 2 ); 
Need a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us