Back to Shop on product page with View Cart

Anil kumar

add_filter( ‘wc_add_to_cart_message’, ‘my_wc_add_to_cart_message’, 10, 2);

function my_wc_add_to_cart_message( $message, $product_id )

$message .= sprintf( ‘%s‘, esc_url( wc_get_page_permalink( ‘shop’ ) ), esc_html__( ‘Continue Shopping ‘, ‘woocommerce’ ) );
return $message;

add in function file

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt