What PHP file does WooCommerce Shop Page use?

As you know, WooCommerce creates a bunch of its system pages after installation, like “Cart”, “Checkout”, “My Account” etc.

For pages like “Cart” and “Checkout” everything is quite obvious, but “Shop” page seems like an archive page, isn’t it? As for me, for the first time I thought that the file for this page should be archive.php or something like that… what can I say, I was surprised.

Look at the diagram below:

Teamplate files which WooCommerce Shop page uses
WooCommerce Shop Page template hierarchy

As you can see, I cut out custom.php (Custom Page Templates) from the image – it is because WooCommerce removes the dropdown option where you can choose a custom page template for the Shop page.

One more thing – if your Shop page is displayed as website homepage, the most priority file will be front-page.php, everything else as on the diagram above.

More about theme files in WooCommerce

Misha Rudrastyh

Misha Rudrastyh

I develop websites since 2008, so it is total of 13 years of experience, oh my gosh. Most of all I love love love to create websites with WordPress and Gutenberg, some ideas and thoughts I share throughout my blog.

Need some developer help? Contact me