• Resolved akash000ahammed

    (@akash000ahammed)


    Is there anh way i can change this checkout notice with my own line?

    Please log in to avail $0.38 cashback from this order.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    Hi @akash000ahammed

    You can use the filter woo_wallet_cashback_notice_text to change cashback notice text in cart and checkout page.

    Thanks

    Thread Starter akash000ahammed

    (@akash000ahammed)

    Can you please help me to write this code,

    Like I want to add this text

    Your Order has ($ amount) in eligible health credit, please register for a membership to claim credits. Already a member, login to claim credits on this order.

    It will be great help…

    Thank you…

    Plugin Author Subrata Mal

    (@subratamal)

    @akash000ahammed

    Please use below code in theme function.php file.

    add_filter('woo_wallet_cashback_notice_text', 'woo_wallet_cashback_notice_text_callback', 10, 2);
    if(!function_exists('woo_wallet_cashback_notice_text_callback')){
        function woo_wallet_cashback_notice_text_callback($text, $cashback_amount){
            if(!is_user_logged_in()){
                $text = sprintf(__('Your Order has ( %s ) in eligible health credit, please register for a membership to claim credits. Already a member, <a href="%s">login</a> to claim credits on this order.', 'woo-wallet'), wc_price($cashback_amount, woo_wallet_wc_price_args()), esc_url(get_permalink(get_option('woocommerce_myaccount_page_id'))));
            }
            return $text;
        }
    }

    Could you please do me a BIG favour and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkout notice change’ is closed to new replies.