Archived topic
Woocommerce Shop Page
19 replies · Started by Melvin on April 4, 2023
I see.
WooCommerce has a default Layout for the Shop Page. It overrides the Layout you have on a static page it's pointed to. This is why we pointed it elsewhere.
This is WooCommerce behavior.
I think there’s something wrong with your solution.
I followed your instructions and set the default shop page to /booking. It works fine when you go directly to shop with the /shop slug.
However, when you clear a cart, the “Return to Shop” button leads me to the problematic page with the /booking slug instead of the /shop slug since you’ve asked me to set it to the /booking slug.
To repeat this error, try adding an item to the cart here, click on the “Review Order” link to go to the cart page. And then clear the cart. After that, you will see the “Return to Shop” button leads you to the problematic default shop (/booking) page.
I’ve built a number of e-commerce shops using other themes using the /shop slug without any issues. This is the first time I encounter such an issues with the shop page.
This is all controlled by WooCommerce.
Try re-removing the page set in WooCommerce > Settings > Products.
If that doesn't work, you can try redirecting: https://wpcodeus.com/how-to-redirect-woocommerce-shop-url/#:~:text=to%20that%20instead.-,Redirect%20WooCommerce%20Shop%20URL,-In%20order%20to
If these fail, it would be best to reach out to WooCommerce support regarding this: https://wordpress.org/support/plugin/woocommerce/
But the thing is it only happens to your theme, as mentioned previously. So, can it be WooCommerce's fault?
That's the default behavior. Even if you use a WordPress theme like "Twenty Twenty-One", the same thing would happen. WooCommerce Shop layout overrides the static page content.
You can test this out to be sure.
I just tested it and I confirm the same thing occurs on a different theme.