Title: Deleted woocommerce.php
Last modified: August 20, 2016

---

# Deleted woocommerce.php

 *  [maxthornton](https://wordpress.org/support/users/maxthornton/)
 * (@maxthornton)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/deleted-woocommercephp/)
 * I have deleted the contents of the woocommerce.php by accident, now all shopping
   cart functionality have gone from my site.
 * Is there a fix for this, could i simply re-install the plugin? Or would i loose
   all of the products?
 * Or should i ask my hosting to install a backup of the site?
 * Thanks,
    Max
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [babbsela](https://wordpress.org/support/users/babbsela/)
 * (@babbsela)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/deleted-woocommercephp/#post-3540859)
 * It would be quicker and easier to just reinstall.
 *  Thread Starter [maxthornton](https://wordpress.org/support/users/maxthornton/)
 * (@maxthornton)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/deleted-woocommercephp/#post-3540891)
 * The problem still persists after re-installing a back up..
 * How can we re-create the woocommerce.php? Or if we re-installed the plugin would
   we loose all products and data?
 * Thanks,
    Max
 *  [Rajesh Soni](https://wordpress.org/support/users/rajeshsoni/)
 * (@rajeshsoni)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/deleted-woocommercephp/#post-3540894)
 * Max,
 * Follow these steps. (Assuming you have the latest version of this plugin installed).
 * 1) Try downloading the plugin from the wordpress repository ([http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/))
   
   2) Extract it to a folder on your machine (not your server) 3) Upload just the
   missing file to your server.
 * Hope that helps.
 * Rajesh
 *  [aibrean](https://wordpress.org/support/users/aibrean/)
 * (@aibrean)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/deleted-woocommercephp/#post-3540967)
 * If it was in your theme directory, just copy the page.php and rename it woocommerce.
   php and follow the instructions on theme compatibility in the Woocommerce documentation.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Deleted woocommerce.php’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [aibrean](https://wordpress.org/support/users/aibrean/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/deleted-woocommercephp/#post-3540967)
 * Status: not resolved