Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2008
    Posts
    19
    Plugin Contributions
    0

    Default Can't add option values

    Using 1.3.9h

    I'm trying to add option values and keep getting an error. I can add option names just fine. What am I doing wrong?

  2. #2
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: Can't add option values

    Quote Originally Posted by jfenn View Post
    Using 1.3.9h

    I'm trying to add option values and keep getting an error. I can add option names just fine. What am I doing wrong?
    Option Names are the actual names you are going to use for the Option Values which it seems you already figured this out..

    So to add Option Values to your Option Names you would do the following

    1. Mouse Over Catalog then click on Attributes Controller then click on "Option Values" button

    2. To add a Option Value to an Option Name see screenshot attached. The Option Name are the ones in the drop down box as shown in the image.

    3. Choose your "Option Name" from the drop down box (example: Color) and inside the field next to it where it says "en:" add a name such as "Orange" (Without Quotations) add sort order number if only desired to, click "insert button"

    4. Go to attribute controller and choose your product and start adding attributes.

    Also other resource for information can be found at Tutorial URL https://www.zen-cart.com/tutorials/index.php?article=57
    Last edited by knuckle-101; 5 Aug 2011 at 09:11 PM.
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

  3. #3
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: Can't add option values

    Forgot to ask for the error you were seeing.

    Can you show us the error your getting?
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

  4. #4
    Join Date
    Jun 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Can't add option values

    Quote Originally Posted by knuckle-101 View Post
    Forgot to ask for the error you were seeing.

    Can you show us the error your getting?

    This is the error I get:

    1062 Duplicate entry '1-1' for key 'PRIMARY'
    in:
    [insert into bop_products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) values ('1', '1', 'of 1', '0')]
    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.

  5. #5
    Join Date
    Jun 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Can't add option values

    I should also add that I've set up a zen store before & don't understand why this isn't working for me.

    All of my products are digital and will be downloaded right after payment.

    I wanted my option names/values to be like:

    Download 1 of 1

    I had it set up like this before at another store but can't get it to do this here.

    Thanks.

  6. #6
    Join Date
    Jun 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Can't add option values

    Does anyone know how to help me set this up?

  7. #7
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: Can't add option values

    Quote Originally Posted by jfenn View Post
    Does anyone know how to help me set this up?
    Edited*** I seen Ajeh Replying..
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

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

    Default Re: Can't add option values

    Go to phpMyAdmin and see if you have any records in the table:
    products_options_values

    If not, then click on SQL and run:
    TRUNCATE products_options_values;
    Next, in the SQL run:
    INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES (0, 1, 'TEXT');
    See if this clears up the problem ...

    NOTE: if your tables use database prefixes you will need to add it to the table name on these ...
    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!

  9. #9
    Join Date
    Jun 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Can't add option values

    Quote Originally Posted by Ajeh View Post
    Go to phpMyAdmin and see if you have any records in the table:
    products_options_values

    If not, then click on SQL and run:


    Next, in the SQL run:


    See if this clears up the problem ...

    NOTE: if your tables use database prefixes you will need to add it to the table name on these ...

    Thanks to both of you!!!

    Ajeh, I did what you said & now it works just fine

    Thanks again!

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

    Default Re: Can't add option values

    Thanks for the update that this was able to 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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Can't add option values to new attributes
    By propatchesusa in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 14 Nov 2014, 09:58 PM
  2. How do I bulk add option values to option names?
    By waterbender in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 1 Jul 2014, 02:42 PM
  3. Can't add option values
    By Fix_SM in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 11 Sep 2011, 01:29 AM
  4. Is there an easy way to add Option Names with Option Values defined in another?
    By UnrealPHD.com in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 23 Jun 2010, 02:02 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