Post by derwydd » Wed Aug 29, 2007 5:29 am

I deleted all the categories but left the items in place. I wanted to add my own categories and I get this:

Error: Incorrect integer value: '' for column 'parent_id' at row 1
Error No: 1366
insert into category set image_id = '41', sort_order = '15', parent_id = '', date_added = now()

Active Member

Posts

Joined
Wed Aug 29, 2007 12:13 am

Post by Tokai » Wed Aug 29, 2007 5:03 pm

Boy you were lucky, that you managed to get that far, when I tried to delete categories it said I couldn't because of products attached to it etc.

The only way that I have found to get around it, was by deleting the images, then the products and then the categories...mind you i think you can just change the category name, but remember there are sub categories too.

Here's [url=http://"http://www.mind-body-spirit.eu/shop"]mine so far[/url]

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm


Post by Daniel » Wed Aug 29, 2007 10:48 pm

Tokai wrote: Boy you were lucky, that you managed to get that far, when I tried to delete categories it said I couldn't because of products attached to it etc.

The only way that I have found to get around it, was by deleting the images, then the products and then the categories...mind you i think you can just change the category name, but remember there are sub categories too.

Here's [url=http://"http://www.mind-body-spirit.eu/shop"]mine so far[/url]
derwydd is only having problems because hes should exported over 250,000 products from a totally differn't shopping cart sytem.

It is not hard to delete the categories. The warnings are there to stop people damaging the integrity of the OpenCart database and I don't remeber adding any integrity validation to categories. For products, images and a few others yes it has this validation rules, but not categories.
Last edited by Daniel on Wed Aug 29, 2007 10:50 pm, edited 1 time in total.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 4 guests