Hi there,
Thank you for providing all the details — I completely understand your concern, and I appreciate you explaining the steps you’ve already tried.
I’d like to clarify how the Custom base field in WooCommerce works. Adding a URL there does not change where the Return to Shop button redirects. The Custom base only affects the URL structure of your product pages — for example, it changes how product URLs are generated (e.g., /products/product-name/ or /courses/product-name/). It doesn’t control the destination of buttons on the cart page.
The Return to Shop button on the cart/empty cart page uses the Shop page defined here: WordPress Admin → WooCommerce → Settings → Advanced → Page setup → Shop page
Whatever page is set in that dropdown is where the button will go.
If you want to force the button to go to a custom page regardless of the Shop page setting, you can add the following snippet to your child theme’s functions.php or a Code Snippets plugin:
dd_filter( 'woocommerce_return_to_shop_redirect', 'bbloomer_change_return_shop_url' );
function bbloomer_change_return_shop_url() {
return home_url('/courses/'); // Replace with your desired page URL
}
This will make the button always redirect to the page you specify.
For more details, you can review the official guide on WooCommerce hooks and filters here: WooCommerce Snippet Documentation
If that does not work, 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
Hi there!
This is a follow-up message. You can use the Block-based Cart to change the Return to Shop button URL. I’ve created a short video to guide you through the process:
👉 https://go.screenpal.com/watch/cT6UhYnFfyU
I hope this helps!
Thread Starter
Frank B.
(@frankbiganski)
Thank you very much for providing such as detailed explanation.
My WC shop page is actually located at: WordPress Admin → WooCommerce → Settings → Products (tab) → Shop page → Courses (my WC Shop page) and not as you described.
I honestly have no idea how my website suddenly began showing this “No products were found matching your selection” displayed on my WC shop page.
I appreciate the code, but I prefer not to make changes to the functions.php because I’d have to re-upload this custom functions.php file after every update.
I already have to upload a custom “customer-new-account.php” file after every WC update to: wp-content → woocommerce → templates → emails → customer-new-account.php. And this is to help guide a new student/customer back to the LearnPress LMS profile page and not the WC account page. LearnPress is aware of how WC and their plugins interact.
I’m only using WC to handle the processing of payments and account creations with my ThimPress LearnPress LMS plugin, along with a WooCommerce Addon for LearnPress plugin by ThimPress and a WooCommerce for Stripe plugin for WooCommerce. All of that works fine though.
I don’t have any “products” to display so maybe that’s the issue? I see this oddity is not unique to me as there’s many posts over the past decade relating to the Return to Shop button.
Anyway, I’ve made revisions to my WC shop page so that when someone clicks an empty “Return to Shop” button, the visitor sees this:
https://thedronecoach.io/part-107-drone-course/courses/
This will will fine for now, and I will study your video tutorial too. Thank you! I used WPBakery since 2011 as I’ve never grown to liking Gutenberg or blocks. I just prefer the visual flow of WPBakery much better.
Anyway, thanks again!
Superb @frankbiganski,
Thank you for taking the time to provide detailed feedback and share your workaround — great job!
I’ll go ahead and mark this thread as resolved for now. If you have any further questions, please don’t hesitate to reach out, and we’ll be glad to assist.
As a note, you can add custom code to your website without editing the functions.php file or reapplying changes after updates by using a code snippet plugin, which offers better control and safety for added code.
If you have a moment, we’d really appreciate it if you could leave us a review if you found the support and guidance in this forum helpful:
👉 https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post
Thread Starter
Frank B.
(@frankbiganski)
Thank you. Yes, please feel free to close out.
I’m no WC expert by any means, but it also occurred to me that I might be able to create one WC shop page by adding a “Digital Product” and adding the LearnPress course to that page. I’m thinking I was getting that “No products” statement because I actually have no products under WooCommerce. I’ll give it a go but yes again, feel free to close out.
Thank you!
Hi there,
That sounds like a great approach — creating a digital product and linking your LearnPress course to it should help display the shop page correctly.
Thanks for the update, and I’m glad to hear you’ll be giving that a try. I’ll go ahead and close this thread as requested, but feel free to start a new one anytime if you need further assistance.
All the best with your setup!