This is the overall best way to block pretty much all bad bots, especially for WooCommerce. If you all of a sudden getting a lot of spam comments another good thing is to start using WordPress' built in blocker which is inside Settings. Simply go to Settings > Discussion and scroll down a little and [...]
This is a handy script to have when you want to show recent posts for a custom post type. Definitely check it out and let me know what you think.
I’ll show you this simple way of adding a second menu to your theme.