This filter allows you to change the button URL when there are no items in the cart.

 * Change the checkout button URL.
 * @param string $url The checkout URL. Default is get_permalink( wc_get_page_id( 'shop' ) ).
function my_prefix_cartpops_empty_cart_url( $url ) {
	$url = esc_url( get_permalink( get_page_by_title( 'Some page' ) ) );

	return $url;
add_filter( 'cartpops_empty_cart_button_url', 'my_prefix_cartpops_empty_cart_url', 10, 1 );

It's time to improve your WooCommerce Cart

CartPops is a WooCommerce Add To Cart Popup, that helps every shop owner improve their user experience, increase conversions & maximize profits.

Was this page helpful?