Solutions
– Change WooCommerce’s Return to shop button URL and label

If you're running Tickera alongside WooCommerce via Bridge for WooCommerce, chances are that you have noticed this button on WooCommerce's cart page when the cart is empty.

However, having this button is not always most convenient thing, especially if you're selling tickets via our Seating Charts add-on in which case you're most likely not using WooCommerce's shop page at all so you certainly don't want your customers to end up on a blank page or some page that is not used on your website.

So, with this little snippet, we can "repurpose" this button and give it new URL to which it will point as well as change its label.

First off, you should install a plugin such as this one and then add the following snippet:

//Modify button URL

add_filter( 'woocommerce_return_to_shop_redirect', 'tc_woo_return_to_shop_button_modify' );
function tc_woo_return_to_shop_button_modify() {
    $url = 'https://redirection-url-of-my-website.com'; //CHANGE URL ON THIS LINE
    return $url;
}


//Modify button text

add_filter('woocommerce_return_to_shop_text', 'tc_woo_shop_button_text_modify');
function tc_woo_shop_button_text_modify() {
    $shop_button_text = "Back to events"; //CHANGE BUTTON LABEL ON THIS LINE
    return $shop_button_text;
}

As you can see, this snippet is consisted of two parts: one changes the URL where the Return to shop button will point and the other part changes the button label. Also, you will notice where you should make changes to modify the URL and button label.

So, with this, you can, for example, modify URL to point to the event archive page or the page where you have displayed the event calendar or anything else really and then also modify the label to matches the URL to which you're redirecting.

 

Need help or have some additional questions regarding this or anything else related to Tickera?

Feel free to shoot us an email to info@tickera.com

 

 

Leave Us A Message!