Jump to content

how to clear the test data?


Recommended Posts

i have installed the ps one month ago.Last night,my partner upload the product with csv.
And i don't know what happen.The categories was messed.
I can't see the "home" category.
The root category is what he had imporded last night called"Nike shox Classic"
Now i want "home" category come back. What should i do?
BUY THE WAY,i have changed a lot of files in prestashop,and if i want to clear all the test data,what should i do(just clear all the categories and products)?

Forgive my poor english.Thanks.

29430_vH1pRQl3DACkVXLsTbXb_t

Link to comment
Share on other sites

It is impossible to edit the Home category from the Back Office. You will need to restore a backup of your categories tables, or use the CSV import tool again with the Home category in it. Make sure that you have category 1 and "Home" as the first category and make all top-level categories have an id_parent of 1. Choose the "Delete categories?" option to delete your messed up categories before re-importing.

Link to comment
Share on other sites

Yes, here's an example category CSV that creates a "Home" category and a "Category" subcategory:

ID;Active (0/1);Name *;Parent category;Description;Meta-title;Meta-keywords;Meta-description;URL rewrited;Image URL
1;1;Home;0;;;;;;
2;1;Category;1;;;;;;

Link to comment
Share on other sites

Yes, here's an example category CSV that creates a "Home" category and a "Category" subcategory:

ID;Active (0/1);Name *;Parent category;Description;Meta-title;Meta-keywords;Meta-description;URL rewrited;Image URL
1;1;Home;0;;;;;;
2;1;Category;1;;;;;;



thank u very much.it works.There is another question:how i can delete all the product(sample data)in the shop???
The category is normal now.but in the New product module,i can see some products which i can't found in the BO>Category.I just want to clear all of them?what should i do?
Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...