Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Plugin Contributions
    0

    Default Cannot Define Attributes for Products

    Version: v1.3.9h
    Clean install, no addons, not very customized! I'm very new to this and am just finding my feet.

    I am just getting round to adding product attributes to my products. I will be, mostly, using drop downs and text boxes.

    I have added an Option Name - 'Text required' and I do not need to edit that.

    I don't know if this is relevant, but, when I go to the 'Attributes Controller' I see my categories in the drop down menu and all my sub categories are marked with an asterisk.

    When I choose the product to add the attribute to I select the attribute, press insert and all I get is 'No Attributes Defined for Product'.

    Last week I had a go adding a text box and I could. When I tried to add a dropdown box I got the error '1062 Duplicate entry '1-1' for key 1'. I found this thread and followed it: http://www.zen-cart.com/forum/showthread.php?t=169035

    Any help would be appreciated.

  2. #2
    Join Date
    Apr 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot Define Attributes for Products

    Quote Originally Posted by Daisy606 View Post
    Version: v1.3.9h
    Clean install, no addons, not very customized! I'm very new to this and am just finding my feet.

    I am just getting round to adding product attributes to my products. I will be, mostly, using drop downs and text boxes.

    I have added an Option Name - 'Text required' and I do not need to edit that.

    I don't know if this is relevant, but, when I go to the 'Attributes Controller' I see my categories in the drop down menu and all my sub categories are marked with an asterisk.

    When I choose the product to add the attribute to I select the attribute, press insert and all I get is 'No Attributes Defined for Product'.

    Last week I had a go adding a text box and I could. When I tried to add a dropdown box I got the error '1062 Duplicate entry '1-1' for key 1'. I found this thread and followed it: http://www.zen-cart.com/forum/showthread.php?t=169035

    Any help would be appreciated.
    Just to add:

    I have added a text box in 'Option Name Manager'. I have gone into 'Attribute Controller' and get the message in a yellow bar at the top of the screen saying: 'No Option Values have been defined'

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

    Default Re: Cannot Define Attributes for Products

    If you go into phpMyAdmin and browse the table:
    products_options_values

    Do you have a setting for:
    products_options_values_id 0
    language_id 1
    products_options_values_name TEXT
    products_options_values_sort_order 0

    Do you have any add ons?
    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
    Apr 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot Define Attributes for Products

    I have two database set up, zc1 and zc2.

    When I first tried to install zencart I had issues and my host provider's support set up databases and I do not know which one is my shop.

    Is there any way I can find out?

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

    Default Re: Cannot Define Attributes for Products

    Look at your two configure.php files on the server:
    /includes/configure.php
    /adin/includes/configure.php

    and that will tell you the database that you are using ...
    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!

  6. #6
    Join Date
    Apr 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot Define Attributes for Products

    Thanks, I have figured out my database.

    Now there is no 'products_options_values' just 'zen_products_options_values'.

    Is that what you mean?

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

    Default Re: Cannot Define Attributes for Products

    That is the table ... the zen_ means you are using Database Prefixes on the database tables ...
    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!

  8. #8
    Join Date
    Apr 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot Define Attributes for Products

    I already have dropdown boxes there...


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

    Default Re: Cannot Define Attributes for Products

    You need to have one record with the settings I posted ... this is a built in setting ...

    If you browse the table and do not find one you need to run the following in your Tools ... Install SQL Patches ...
    INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES (0, 1, 'TEXT');
    Also check the table:
    products_options_types

    in your case this will be:
    zen_products_options_types

    and see what records show up there for the Option Name types ...
    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!

  10. #10
    Join Date
    Apr 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot Define Attributes for Products

    Ok,

    Product Option Types:


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Cannot set attributes. Cannot add anything
    By bearlymakinit in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 28 Apr 2015, 06:32 PM
  2. v139h Cannot add attributes to products
    By Goshawk in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Feb 2012, 06:17 PM
  3. v1.3.9d cannot get grid listing for products
    By sonat in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2010, 07:50 PM
  4. Default Attributes for Category or Add Attributes when Creating Products
    By vegascoug in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Sep 2009, 12:03 AM
  5. Two attributes for one product - cannot add to cart, cannot view cart, etc
    By tqualizer in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Dec 2007, 02:04 AM

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