Hi @peter0013,
To change the return to shop link, WooCommerce has a filter that you can make use of to create a hook. Blow is the code you can use to achieve this.
add_filter('woocommerce_return_to_shop_redirect', 'custom_return_to_shop_url');
function custom_return_to_shop_url() {
return site_url('/your-custom-shop-page/');
}
Please make sure to replace /your-custom-shop-page/ with the url slug of the page you’d like to use as the main shop page. For example, if your custom shop page URL is https://example.com/custom-shop, use /custom-shop/
This code needs to be placed in your functions.php file.
Hi! Thanks for your answer. But where do I find this filter? I looked under hooks in WooCommerce settings, but don´t understand how to do it? Can you guide me?
Regards Peter
Hi there!
The filter shared by @mosesmedh is not something you’d find in the WooCommerce settings directly. Instead, it needs to be added to your functions.php file in your child theme. Alternatively, you can use a plugin like Code Snippets to add that code without modifying the theme files: Code Snippets Plugin.
Please note that we do not provide support for customization. If that still need help regarding customization, I can recommend WooExperts and Codeable.io as options for getting professional help. Alternatively, you can also ask your development questions in the WooCommerce Community Slack as custom code falls outside our usual scope of support.
Thank you
Thanks for your answer! I found the solution.
Hi there,
Thank you for the update! I’m glad to hear that you found a solution.
I will mark this ticket as resolved. If you need any further assistance in the future, please don’t hesitate to open a new ticket.