Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Dec 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: new category button missing....

    Pardon my ignorace but, where can I find this products_to_categories table?? I've been searching for this for a long time.
    thank you

    Quote Originally Posted by Ajeh View Post
    You can do this by setting the categories_id for each product in the products_to_categories table from 0 to categories_id 1 ...

    First, backup your database ...

    Next, this will change all Products from being in the Top Level Category of categories_id 0 to categories_id 1 ...

    Then run the following in the Tools ... Install SQL Patches ...

    Code:
    UPDATE products_to_categories SET categories_id = 1 where categories_id = 0;
    Next, go to the Catalog ... Categories/Products ... and you should be able to click the NEW CATEGORY button ...

    Create a Category and when done, all Products should end up in this new Category ... if not, check what categories_id your new Category is and this can be updated on the products_to_categories table after a couple or three additional questions, should this problem arise ... otherwise, you should be set now and can build your Categories and move your Products around to proper Categories ...

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: new category button missing....

    The products_to_categories table is in your database ...

    You can visually see it with phpMyAdmin from your Control Panel for your domain ...

    The command I gave you just issues the command to take all of the products that are assigned to the categories_id 0 and set them all to categories_id 1 so that when you make your first Category and it is assigned the categories_id 1 all of the Products will be associated with it so you can Move them to new Categories that you will be able to create ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Dec 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: new category button missing....

    Thank you very much.
    I found the php file but I don't know where to make those changes. So I guess I'll delete every files and start all over again. It seemed not to be too complicated but I'm not familiar with php so I don't want to mess things up.
    thank you for your time.
    philippe

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: new category button missing....

    All you have to do is go to your Zen Cart Admin and click on the TOOLS ... INSTALL SQL PATCHES ... and in the box enter:
    Code:
    UPDATE products_to_categories SET categories_id = 1 where categories_id = 0;
    And then go back to Catalog ... Categories/Products ... and click on the NEW CATEGORY button that should now be show and ADD you first Category which should end up as categories_id and when you SAVE that new first Category all of your Products will "magically" appear in that new Category ...

    Now, you can make your Categories and MOVE these Products to the right Category without having to delete them all and remake each one of them ...

    If you don't care about deleting each Product that you already made, then delete each one ... otherwise, run that command after backing up your database ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Feb 2008
    Posts
    41
    Plugin Contributions
    0

    Default Re: new category button missing....

    I have a similar problem. I accidentally added products that were supposed to be in a sub-category into the main category using EP. Can I use this same solution?

    So I could change:

    Code:
    UPDATE products_to_categories SET categories_id = 1 where categories_id = 0;
    to

    Code:
    UPDATE products_to_categories SET categories_id = (NewNumber) where categories_id = (CurrentMainCategory);
    Then delete the new category? Or would this also move the subcategories?

    I thought I had a good backup, which I always do before I EP. Unfortunately, I had made a mistake, and lost my backup, so now I have a big mess to clean up. I'm trying to avoid having to delete my whole catalog and reinstall it.

    Thanks,
    Jessica
    www.bestfriendsquilts.com

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: new category button missing....

    The idea is, your Products are in the products_to_categories under categories_id XXX and you want to put them in the next categories_id you create YYY but to do that you need to first get them out of the current categories_id XXX to a categories_id not yet used YYY ...

    If you ONLY have categories_id XXX on ALL products, you can use:
    Code:
    UPDATE products_to_categories SET categories_id = YYY;
    If you have several categories_id and just need to fix one categories_id set of products then you can use:
    Code:
    UPDATE products_to_categories SET categories_id = YYY where categories_id = XXX;
    Once you do that, you
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: new category button missing....

    NOTE: you also need to update the master_categories_id on the products table to reflect this change ...

    There are several ways to do this, or, if you move them into New Real Categories that will be done for you during the Move ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. missing category button
    By poorhouse in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 May 2010, 03:11 AM
  2. Missing "New Category" Button
    By carlandbeth in forum General Questions
    Replies: 2
    Last Post: 17 Mar 2008, 05:28 PM
  3. Category Button Missing
    By cigarguytim in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Jul 2007, 03:59 AM
  4. Missing "New Category Button"
    By mrbt in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 11 Mar 2007, 05:21 PM
  5. Missing "new category" Button
    By daveky in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Sep 2006, 02:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg