Jump to content

Import category with parent is actually deleting the parent


Recommended Posts

Hi all.

Let me start by explaining that I'm quite new to Presta.
As so, the chance of my problem being my fault is quite big.

I'm trying to recreate my (already existent) categories and sub-categories.

So, first I uploaded a categories list, something like this:

ID CatName
2   CatA
3   CatB
...
n  CatN


And this went just fine.

Next i tried to import my sub-categories.
As the server was giving me "500 Internal Server Error" errors, I decided to import just a single sub-category to try to understand what was going on.

So I import this:

Parent_Category SubID SubName
2               1000  SubCatA



After getting the same error, I noticed that not only the sub-category wasn't imported, but my initial cat whose ID is 2 (CatA) was deleted from the database.

Does anyone know what I'm doing wrong here?

Thank you!
Pedro Fardilha

Link to comment
Share on other sites

Hi all.

Here it's what I discovered so far.

Apparently what is causing this problem is the fact that my sub-category has the same name of the main category, even though they have different IDs.

I tried with the latest svn version, but no luck.
The problem remains.

What does this mean to me?
Well, basically that I'm in deep trouble.

I have something like this:
A main category called "Comics" and inside 2 sub-categories, one also called "Toys" and another called "Comics".
Since PrestaShop has this bug, it doesn't allow me to do this, making it impossible for me to use it. :(
And no, changing the sub-cats name it's not an option.
Now, how am I going to explain this to my costumer it's a whole other story.
Specially since his original cart based on zen cart allows him to do this.

If anyone knows a way to work around this that doesn't involve changing the sub-cats name, please do tell me.

Thank you so much!
Pedro Fardilha

Link to comment
Share on other sites

×
×
  • Create New...