What PHP file does WooCommerce Shop Page use?

Sometimes it can be unclear what WordPress theme files are going to be used for WooCommerce pages. Let’s figure it out!

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 love WordPress, WooCommerce and Gutenberg so much. 10 yrs of experience.

Need some custom developer help? Let me know

Follow Misha

Need some help with WooCommerce?

If you need some professional developer help, I will be happy to assist you.

Contact me Who I am?

Leave a comment

php js HTML CSS Code

I will only use your personal information to contact you. Privacy Policy