Answers for "how to show cart empty message when product delete from cart"

PHP
0

how to show cart empty message when product delete from cart

remove_action( 'woocommerce_cart_is_empty', 'wc_empty_cart_message', 10 );
add_action( 'woocommerce_cart_is_empty', 'custom_empty_cart_message', 10 );

function custom_empty_cart_message() { ?>
    <div class="col-12 offset-md-1 col-md-10">
        <div class="cart-empty">

        <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>
        <p style="text-align: center; font-weight: bold;">Your Shopping Cart Looks Empty</p>
        <p style="text-align: center;">Your shopping cart is waiting</br>Give it purpose</p>
    </div>
</div>
<?php
}
Posted by: Guest on May-17-2021

Code answers related to "how to show cart empty message when product delete from cart"

Browse Popular Code Answers by Language