how to show cart empty message when product delete from cart

Solutions on MaxInterview for how to show cart empty message when product delete from cart by the best coders in the world

showing results for - "how to show cart empty message when product delete from cart"
Ilaria
11 Feb 2018
1remove_action( 'woocommerce_cart_is_empty', 'wc_empty_cart_message', 10 );
2add_action( 'woocommerce_cart_is_empty', 'custom_empty_cart_message', 10 );
3
4function custom_empty_cart_message() { ?>
5    <div class="col-12 offset-md-1 col-md-10">
6        <div class="cart-empty">
7
8        <a href="http://abcd.com/wp-content/lo.png"><img class="size-medium wp-image-25512 aligncenter" src="http://abcd.com/wp-content/lo.png" alt="" width="300" height="169" /></a>
9        <p style="text-align: center; font-weight: bold;">Your Shopping Cart Looks Empty</p>
10        <p style="text-align: center;">Your shopping cart is waiting</br>Give it purpose</p>
11    </div>
12</div>
13<?php
14}
similar questions