Auto-populate WooCommerce Category page with Essential Grid

The following code snippet can be used to auto-populate a grid for your WooCommerce product category pages.
The code can be added to one of your WooCommerce page templates, such as "archive-product.php".