Hey Nonie,
The code given here is only a band aid fix. You don’t need code unless it’s proven to be a bug. In this case, we’ve not yet proven if the issue you’re facing is a bug because you are optimizing your site.
I’m not saying that website optimization is bad. In fact, it’s recommended. The only thing that is wrong is if you enable it even in times of maintenance such as during website updates and using its options not knowing what it will do with the resources within WordPress.
Please turn disable all options in W3 Total Cache and purge all caches then check if the issue persists. The most common causes are file minification, concatenation and inlining code such as what Thai referred to x75717
.
Please always do this step before posting an issue. If the issue persists, please deactivate your caching plugin and give us WordPress Admin credentials in a secure note.
Regarding compatibility of WooCommerce, if there’s an update, you can check if it’s compatible in our Version Compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195
Thanks.