Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Location
    Austin, TX
    Posts
    93
    Plugin Contributions
    0

    Default Changing Category_ID to VARCHAR

    The inventory spreadsheet a client gave me has variable characters for category codes instead of integers, i.e. AC=Accessories

    These are the changes I made to each of the following tables:

    Categories
    categories_id varchar(11) AC
    parent_id varchar(11) AC

    Categories_Description
    categories_id varchar(11) AC

    Products
    master_categories_id varchar(11) AC

    Products-to-Categories
    categories_id varchar(11) AC

    The categories are listed correctly in the categories box on the site. The products show in the different product areas such as new products. But, If i click on the Accessories category link, none of the products for the category show.

    Also on the admin dashboard it's showing the 1303 product count, but no categories or products show in the admin catalog area.

    What have I missed or is this even a viable way to be able to import inventory without having to set up some extreme excel mapping formulas crap??

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing Category_ID to VARCHAR

    Any category-handling code in Zen Cart will be set up to work with integer ids, and non-integer content may cause malfunctions in numerous places - impossible to say where without a thorough review of the code. I don't think it is feasible to convert everything to use your external ids; you will need to do some mapping.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Changing Category_ID to VARCHAR

    Glenn is correct. You will have massive problems if you try to change the ID handling.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2005
    Location
    Austin, TX
    Posts
    93
    Plugin Contributions
    0

    Default Re: Changing Category_ID to VARCHAR

    Thanks for the reply gjh42. I felt that would be the answer, but you never know unless you ask. Do you happen to know of a handy open-source excel mapping tool or something of the like? I'm excel tarded

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing Category_ID to VARCHAR

    Sorry, I haven't used Excel myself.

 

 

Similar Threads

  1. changing varchar lenght?
    By broeder in forum General Questions
    Replies: 1
    Last Post: 28 May 2011, 03:34 PM
  2. Reverse Bulk Master Category_ID change?
    By Pammydee in forum General Questions
    Replies: 2
    Last Post: 8 Jan 2011, 06:43 PM
  3. change products_options_values_name to text type from varchar
    By rlparker25 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Nov 2009, 06:44 PM
  4. category_id when linked products
    By Gomlers in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 18 Aug 2009, 05:53 PM
  5. Check category_id to parent_id
    By numinix in forum Contribution-Writing Guidelines
    Replies: 5
    Last Post: 9 Jul 2007, 07:47 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR