Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Mar 2005
    Posts
    372
    Plugin Contributions
    0

    Error can not add product wrong product type

    I have setup the database added lots of products, edited can move between folders, but can not add new product.

    The error comes up in pink after you click new product and says "The pecified product type cannot be added to this category. The category in question can take products _ general and that is what it is setup for. But no matter what and I have tried to fixed the tables. I can not add a new product.

    What to do to be able to add product to the category???


    Thanks,
    C

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Error can not add product wrong product type

    1. Admin->Catalog->Product Types ... which product types are listed?
    Have you made any changes to these settings anywhere? If so, what?
    Have you deleted any of the defaults?

    2. Admin->Catalog->Categories/Products ... edit the category you're getting the error with. Which categories does it show as restricted to (at bottom of category edit details)?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

    Default Re: Error can not add product wrong product type

    Could you check your product_types table via phpMyAdmin and post the settings that you have in there?
    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!

  4. #4
    Join Date
    Mar 2005
    Posts
    372
    Plugin Contributions
    0

    Default Re: Error can not add product wrong product type

    Quote Originally Posted by Ajeh
    Could you check your product_types table via phpMyAdmin and post the settings that you have in there?
    Product_types
    Product-General product
    Product-Music product_music
    Document-General document_general
    Document-Product document_product
    Product-Free Shippping product_free_shipping

    Attached find Product Type to Category which is making no sense at all to me. What is this suppose to have in it. This looks like it might be the problem.

    Thanks,

    C
    Attached Images Attached Images

  5. #5
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Error can not add product wrong product type

    What is the structure of your product_types_to_category table ?

    Is there an auto-increment on one of the fields? In this case, there should not be...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

    Default Re: Error can not add product wrong product type

    If I go to phpMyAdmin and browse the product_types table I see the following:
    type_id type_name type_handler type_master_type allow_add_to_cart default_image date_added last_modified
    1 Product - General product 1 Y 2006-09-20 22:32:57 2006-09-20 22:32:57
    2 Product - Music product_music 1 Y 2006-09-20 22:32:57 2006-09-20 22:32:57
    3 Document - General document_general 3 N 2006-09-20 22:32:57 2006-09-20 22:32:57
    4 Document - Product document_product 3 N 2006-09-20 22:32:57 2006-09-21 17:02:52
    5 Product - Free Shipping product_free_shipping 1 Y 2006-09-20 22:32:57 2006-09-20 22:32:57
    What do you see?
    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. #7
    Join Date
    Mar 2005
    Posts
    372
    Plugin Contributions
    0

    Re: Error can not add product wrong product type

    Quote Originally Posted by DrByte
    What is the structure of your product_types_to_category table ?

    Is there an auto-increment on one of the fields? In this case, there should not be...
    There is no auto increment, but shouldn't the table consist of
    product-general 's number and all the categories it has and the only other product type I am using is Document_Product.

    So whatever number is applied to product_general in my case should be opposite all the catergories that are in that category

    and

    document-product has only two categories in it that would be Memberships and Donations.

    So is there a way to edit this by hand to reflect what should really be there?

    I do write my own tables and database driven sites so I am somewhat familiar with populating tables, but I am not sure in this case what numbers are applied to the product_type or categories. Where exactly would I find those???

    Do only the main categories go in here or the sub categories also???

    C

  8. #8
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Error can not add product wrong product type

    In your product_types table, do you have only 5 records, or do you have 35 records? And what are they?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Error can not add product wrong product type

    As far as database-layout goes ...

    *if* a category has a restriction enforcing only certain product-types to be allowed within in, *then* a record for that category and the prod-type-restriction should be in the product_type_to_category table.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Mar 2005
    Posts
    372
    Plugin Contributions
    0

    Re: Error can not add product wrong product type

    Quote Originally Posted by DrByte
    In your product_types table, do you have only 5 records, or do you have 35 records? And what are they?
    In my products types table I have 5 records in my products types to categories table I have 143 records and they seemed to be auto incremented even though auto increment is not turned on.

    I only have 28 categories some of which are null. So it seems to be I should only have 38 product_type to categories entries.

    Is that right??

    C

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Add a new product type in 1.5, or not...
    By jeffiec in forum Code Collaboration
    Replies: 9
    Last Post: 20 Feb 2013, 04:14 AM
  2. Replies: 4
    Last Post: 8 Oct 2012, 04:07 PM
  3. How can I add Bilingual additional Product-Type fields for our books?
    By kamy in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 1 May 2010, 03:26 PM
  4. Auction Product Type: Can't add a product of the type.
    By sw0rdz in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Sep 2009, 02:11 AM
  5. If you turn off add to cart in product type price does not show
    By fweb in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 3 Jul 2006, 01:07 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