Remove button in WooCommerce cart module

I’m not sure if I’m missing something here, but is there a way to remove the “Return to Shop” button in the WooCommerce cart module?

You can hide it via CSS.

Yeah, I had thought of that, but wanted to make sure that was the only option as it always takes me a bit of time to figure that one out :rofl:

Thanks!

You can try this code

add_filter( 'woocommerce_update_order_review_fragments', '__return_empty');

Shoot, no luck. thanks though!

Someone shared the CSS on twitter to do the trick

.return-to-shop {display: none;}

I am not sure that WooCommerce Shortcode worked in your case or not, But recently I have removed add to cart button from my out of stock products with the help of WooCommerce Shortcode.

Yes, Lucas WooCommerce Shortcodes works in this case, Because i had faced pretty same issues when I have set up my store on woocommerce, so I had resolved this issue via WooCommerce Shortcodes.