Note: This article was originally published in 2013. Some steps, commands, or software versions may have changed. Check the current WordPress documentation for the latest information.

In this step-by-step guide, you’ll learn get woocommerce to automatically recreate pages. WordPress is the world’s most popular content management system (CMS), powering over 40% of all websites on the internet.

Prerequisites

Before you begin, make sure you have:

  • WordPress installation (self-hosted)
  • Administrator access to WordPress dashboard
  • FTP/SFTP or file manager access to server files

How to get WooCommerce to automatically recreate pages

As a WooCommerce user you are likely to encounter the need to recreate the pages the system creates during install at one point in your life. Sometimes you just accidentally delete a page, in other scenarios you are messing with the (http://en.wikipedia.org/wiki/Front_and_back_ends “Front and back ends”) (database) and need to (http://en.wikipedia.org/wiki/Installation_%28computer_programs%29 “Installation (computer programs)”) the system, but in other cases such as mine from one version to the next there is this new functionality in a new page you are simply missing because you have the old set of pages. Another possible scenario is that you set up your system in the default language (probably English) and after that you wish to change to another language (say (http://en.wikipedia.org/wiki/Spanish_language “Spanish language”)) but those pages now at least their names are in English. This could be very frustrating, as the next best thing you could possibly come up with would be to reinstall wordpress and WooCommerce or use another installation to copy the page contents to yours. However, there are a few (http://en.wikipedia.org/wiki/Workaround “Workaround”) that will force WooCommerce to reinstall your pages and therefore you can have the latest and greatest versions in the currently supported language your instance is running on.

Workaround 1:

In order to force the page creation dialog to reappear simply follow these steps:

  1. Simply go to WooCommerce > Pages
  2. Unset all of the select boxes for pages (including the shop base option)
  3. De-activate the WooCommerce plugin
  4. Re-activate the WooCommerce plugin
  5. It will ask you whether or not you want to install the pages, yay!

 

Workaround 2:

If you notice what happens when you install WooCommerce during the first time or after you follow workaround 2 is that a URL parameter is used to indicate the WooCommerce settings page to recreate the pages. In that case you could follow this simple instructions to do the same:

  1. Make sure you have deleted the current pages. I am not certain this is necessary but this way you ensure the names are correct and the (http://en.wikipedia.org/wiki/Uniform_resource_locator “Uniform resource locator”) are not in use by other pages. You may wish to try without doing this to see if there is any impact.
  2. Now, enter the admin backend and go to WooCommerce > Settings. Take a look at the URL: http://MySite.Bauzas.com/wp-admin/admin.php?page=woocommerce_settings
  3. simply add “&install_woocommerce_pages=true” to the Settings page URL and it will force the process to recreate the pages. Your URL should look like: (http://MySite.Bauzas.com/wp-admin/admin.php?page=woocommerce_settings&install_woocommerce_pages=true)

I have personally tried both workarounds/solutions with no problems. I have been bugged by not having all the pages set on one of my installations plus the ones I had were in a different language. This made it possible for me to get the latest pages on the correct language without too much effort. Do share your experience and let me know if you have any issues.

(http://img.zemanta.com/zemified_h.png?x-id=55683963-9b59-485d-838e-268e262217dd)](http://www.zemanta.com/?px “Enhanced by Zemanta”)

Summary

You’ve successfully learned get woocommerce to automatically recreate pages. If you run into any issues, double-check the prerequisites and ensure your WordPress environment is properly configured.