Disable WooCommerce Content on Shop Page

The WooCommerce settings provide an option to disable the shop page, but if you have a page called ‘shop’ then WooCommerce will still load the page using the products archive template:


This template file can be copied to your theme folder and then edited allowing the content to be changed (full details in the The Woo Themes Documentation). The file needs to be created in a folder called ‘woocommerce’ in the active theme:


This technique lets you change the content, but we wanted the page to load as if it was a normal page. To achieve this  the page content is reloaded by calling query_posts and then including the desired theme template for the page (in this case page.php):

 // override archive-product.php

 // load specific page

 // load the page template for the current theme
 include get_template_directory() . "/" . "page.php";

 // stop any other woocommerce code executing

This solution (hack) is not ideal and the problem may well be resolved in a future revision of WooCommerce.

Previously the template page was named archive-template.php and this post has been updated to the newly named archive-product.php – thanks to Nancy for pointing this out.

This entry was posted in Programming and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Fatal error: Uncaught Error: Call to undefined function ereg() in /home/brightfunction/brightfunction.co.uk/wp-content/themes/thematic/library/extensions/comments-extensions.php:175 Stack trace: #0 /home/brightfunction/brightfunction.co.uk/wp-content/themes/thematic/library/extensions/discussion.php(10): thematic_commenter_link() #1 /home/brightfunction/brightfunction.co.uk/wp-includes/class-walker-comment.php(174): thematic_comments(Object(WP_Comment), Array, 1) #2 /home/brightfunction/brightfunction.co.uk/wp-includes/class-wp-walker.php(145): Walker_Comment->start_el('', Object(WP_Comment), 1, Array) #3 /home/brightfunction/brightfunction.co.uk/wp-includes/class-walker-comment.php(135): Walker->display_element(Object(WP_Comment), Array, '5', 0, Array, '') #4 /home/brightfunction/brightfunction.co.uk/wp-includes/class-wp-walker.php(370): Walker_Comment->display_element(Object(WP_Comment), Array, '5', 0, Array, '') #5 /home/brightfunction/brightfunction.co.uk/wp-includes/comment-template.php(2097): Walker->paged_walk(Arra in /home/brightfunction/brightfunction.co.uk/wp-content/themes/thematic/library/extensions/comments-extensions.php on line 175