Jump to content

Importing inventory/catagory problem


Guest D.Conor

Recommended Posts

Guest D.Conor

I'm having a bit of trouble with CubeCart here.

I have been trying to import my list of inventory into CubeCart for a while and i found that i can import the list through the database. So I went into the CubeCart database and imported my inventory and categories in .csv format into CubeCart_inventory and CubeCart_category. After i did that i went into the store to make sure it was working i saw that all of the categories were there that i imported, and i was able to see the "featured items" and "popular products". And yet, when i clicked on the categories there were no products in them. I went into the administrator CP and found that if i move products to different categories, they show up on the website inside of the categories, and they are also still there if i change them out and back into the categories.

Does anyone know why this is happening? I have been trying to figure this out for awhile and i just do not see any reason for it to do this. I cant open my store until i import my inventory, and it would take an extremely long time to type in the thousands of items i have individually.

Thanks for any help you can give.

Link to comment
Share on other sites

There is a third table called cats_idx that is an index of all the products in individual categories. You must update the cats_idx table when you insert products then also correct the product counts in each category.

:rolleyes:

Link to comment
Share on other sites

Guest D.Conor

There is a third table called cats_idx that is an index of all the products in individual categories. You must update the cats_idx table when you insert products then also correct the product counts in each category.

:rolleyes:

Thank you for the reply. I see the table cats_idx, but how do I update it?

Link to comment
Share on other sites

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

:rolleyes:

Link to comment
Share on other sites

Guest D.Conor

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

:rolleyes:

Excellent! Everything worked perfectly. Thank you a thousand times! :D

Link to comment
Share on other sites

  • 4 weeks later...
Guest Mark Flynn

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

:)

Excellent! Everything worked perfectly. Thank you a thousand times! :)

I had same problem-just found your solution-applied two commands which worked fine--but unable to get fixCatCount.php to run correctly. The products appear correctly now though...

Link to comment
Share on other sites

To get fixCatCount to work, you need to upload it to /admin/categories/ then call it in your browser as such: www.mystore.com/admin/categories/fixCatCount.php

:)

Link to comment
Share on other sites

  • 8 months later...
Guest dbishop103

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

Sir, William, I LOVE you! :blink: Thank you SO much. I've been struggling for two days to fix my database and this worked for me. Thank you!

I guess I'm going to have to actually LEARN this MySQL and PHP stuff even though I've been fighting it tooth and nail. I appreciate everyone here who shares their knowledge so willingly.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
Guest lcools

Adding products is very slow on my mac (slow-loading of the well-named fckeditor) so I figured out how to upload a csv and tested it with a couple products. I had the fore-mentioned issue with the categories...so I ran the commands below and used fixCatCount.php ...nothing else that I can remember. It worked like a charm and I was oh-so-VERY happy until...

I stumbled upon the realization that ALL of my 400 products were removed from ALL additional categories. I figured I was going to be saving hours using the csv uploads...but now I'll be spending a few hours re-categorizing. I'd really like to figure out what happened so that I can avoid it happening again and use the csv method.

Did running those commands erase the additional category listings? If so, is there a way to avoid it?

Thanks~

Leila

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

:yeahhh:

Link to comment
Share on other sites

  • 6 months later...

Hi,

I'm still trying to figure this out...how to not remove products from the additional categories when I bulk upload...or, perhaps, an easier way to add products to additional categories. The latter takes a long time, since adding one product to more than one additional categories at a time results in duplicates of products.

If anyone has any helpful knowledge in this area, I sure would appreciate it. I'm having to rebuild my databases as my host accidentally and permanently deleted my files and I'm trying to rebuild from 6 month old databases.

Thanks!

Leila

www.bead-o-matic.com/_shop

Adding products is very slow on my mac (slow-loading of the well-named fckeditor) so I figured out how to upload a csv and tested it with a couple products. I had the fore-mentioned issue with the categories...so I ran the commands below and used fixCatCount.php ...nothing else that I can remember. It worked like a charm and I was oh-so-VERY happy until...

I stumbled upon the realization that ALL of my 400 products were removed from ALL additional categories. I figured I was going to be saving hours using the csv uploads...but now I'll be spending a few hours re-categorizing. I'd really like to figure out what happened so that I can avoid it happening again and use the csv method.

Did running those commands erase the additional category listings? If so, is there a way to avoid it?

Thanks~

Leila

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

:yeahhh:

Link to comment
Share on other sites

  • 2 months later...
Guest quietype

Hi,

I'm still trying to figure this out...how to not remove products from the additional categories when I bulk upload...or, perhaps, an easier way to add products to additional categories. The latter takes a long time, since adding one product to more than one additional categories at a time results in duplicates of products.

If anyone has any helpful knowledge in this area, I sure would appreciate it. I'm having to rebuild my databases as my host accidentally and permanently deleted my files and I'm trying to rebuild from 6 month old databases.

Thanks!

Leila

www.bead-o-matic.com/_shop

Adding products is very slow on my mac (slow-loading of the well-named fckeditor) so I figured out how to upload a csv and tested it with a couple products. I had the fore-mentioned issue with the categories...so I ran the commands below and used fixCatCount.php ...nothing else that I can remember. It worked like a charm and I was oh-so-VERY happy until...

I stumbled upon the realization that ALL of my 400 products were removed from ALL additional categories. I figured I was going to be saving hours using the csv uploads...but now I'll be spending a few hours re-categorizing. I'd really like to figure out what happened so that I can avoid it happening again and use the csv method.

Did running those commands erase the additional category listings? If so, is there a way to avoid it?

Thanks~

Leila

Run these two commands in PHPMyAdmin:

TRUNCATE TABLE CubeCart_cats_idx;

INSERT INTO CubeCart_cats_idx (productId, cat_id) SELECT productId, cat_id FROM CubeCart_inventory;

Then run fixCatCount which will correct your category product counts. You can find fixCatCount by doing a simple Google search for that term.

:w00t:

I believe there is a bulk import mod for this. From what I understand. the mod only takes a few minutes to do what is taking you weeks to accomplish. It should save you lots of time and frustration.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...