Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2011
    Posts
    1
    Plugin Contributions
    0

    Default Error Message when setting up Option Values

    I am using v1.3.9h. I am trying to set up Option Values.

    I want to set up size and colour. For example 4 x 6 black and white, 4 x6 sepia...etc So for one product, I want the option of choosing 4x6 black and white OR 4 X6 sepia.

    This is what I have done so far:

    1. Under Catalog/Option Name Manager:

    Created Size and Colour as Option Name.
    Dropdown as Option Type

    2. Under Catalog/Options Values:

    Selected Size and Colour
    Typed Sepia under Option Value
    Typed 1 for default order


    Error displayed:


    1062 Duplicate entry '1-1' for key 1
    in:
    [insert into znc_products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) values ('1', '1', 'Sepia', '2')]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    I am not sure what I am doing wrong. I have deleted the Option name and tried to do it again but the same error message comes up.

    Can someone help me with this?

    Thanks!!

  2. #2
    Join Date
    Dec 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: Error Message when setting up Option Values

    I'm getting this also. Please help!

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

    Default Re: Error Message when setting up Option Values

    Go to phpMyAdmin and see if you have anything in the table:

    If not, backup your database then run these from the Tools ... Install SQL Patches ...
    Code:
    DROP TABLE IF EXISTS products_options_values;
    CREATE TABLE products_options_values (
      products_options_values_id int(11) NOT NULL default '0',
      language_id int(11) NOT NULL default '1',
      products_options_values_name varchar(64) NOT NULL default '',
      products_options_values_sort_order int(11) NOT NULL default '0',
      PRIMARY KEY (products_options_values_id,language_id),
      KEY idx_products_options_values_name_zen (products_options_values_name),
      KEY idx_products_options_values_sort_order_zen (products_options_values_sort_order)
    ) ENGINE=MyISAM;
    Code:
    INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES (0, 1, 'TEXT');
    Does this correct the problem?
    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!

 

 

Similar Threads

  1. v155 Attribute controller - error message when adding attribute values
    By rustwood in forum General Questions
    Replies: 8
    Last Post: 11 Jul 2016, 10:26 PM
  2. Error when adding new option values
    By rdhoke in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 28 Dec 2012, 10:21 PM
  3. Option values error when using quotation marks
    By sparklefish in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 5 Mar 2007, 04:00 PM
  4. Error: Mixed Option Values Is On
    By bobbyt in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Nov 2006, 06:04 AM
  5. Setting defaults for option values
    By hrm in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 25 Aug 2006, 01:00 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