Results 1 to 8 of 8
  1. #1

    help question Is there an easy way to add Option Names with Option Values defined in another?

    Hi,

    First of all, thanks for the great community site. Zen Cart Rocks.

    Ok, on my site, we are selling Crystal Singing Bowls. Each Crystal bowl is a musical instrument and can be available in 13 different musical notes. Some notes are not available or may be sold out, so we give the customer a product "attributes" to specify their First Choice, Second Choice, and Third Choice.

    So far, I have created the First Choice with all the Option Values.

    You can see the example here: http://www.radiantsol.com/store/inde...products_id=15

    Now I want to add a Second Choice and Third Choice Option name, and use the same values and order as my First Choice dropdown.

    Is their an easier way to do this than doing it all over for each Option Name?

    Also, when I add new products, will I have to define these attributes again, and create the Option Name and Option Values for each new product or can I re-use these somehow?

    Thanks in Advance for any help!
    Its much appreciated,
    Anthony
    http://www.mn8multimedia.com
    http://unrealphd.com
    UnrealPHD.com - Video Game Design Tutorials

  2. #2
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    347
    Plugin Contributions
    0

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    Hello,

    If I'm interpreting you correctly you need to do the following:

    Back up your database.

    In Admin, click the Categories dropdown, click Option Name Manager, add your new option names. At the bottom of the Option Name Manager page there is 'Copy ALL Option Values to another Option Name'. You can use this to copy your repeating option values to the new option names.You can now add these new option names and values to your product.

    If you you have many products with the same option names and values you can use the 'Copy to' feature. In Admin go to the product you want to copy. On the the right hand side click the blue 'C'. On the right hand side you will now have the option to copy the product. Choose the category you want to copy it to, choose 'duplicate product' and choose 'Yes' to copy product attributes and click copy. This will create an exact duplicate... you can now change the name, picture, description etc.

    Hope this is what you're looking for!

  3. #3

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    Thank you so much for your reply.

    This may seem silly but how do I back up the database?

    I guess it may not just be copying the whole site via FTP?

    Thanks!!
    http://unrealphd.com
    UnrealPHD.com - Video Game Design Tutorials

  4. #4
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    347
    Plugin Contributions
    0

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    Quote Originally Posted by UnrealPHD.com View Post
    Thank you so much for your reply.

    This may seem silly but how do I back up the database?

    I guess it may not just be copying the whole site via FTP?

    Thanks!!
    Hello,

    There are several ways it can be done. Login to your web hosts' control panel and look for a section called 'Files', in there will be an icon for 'Backup Wizard'. You can use this to do a full back up, home directory back up or a Mysql database backup.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    .

    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

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    Thanks everyone! I love this community. I will make sure to give back what I know when I can.

    Thanks KCB410! I have managed to duplicate my Option Name "First Choice" as both "Second Choice" and "Third Choice" and have duplicated the values, thanks!

    Now I am unsure how to add the Second Choice and Third Choice to my product.

    http://www.radiantsol.com/store/inde...products_id=15

    Do I need to insert one Option value onto the product (even though they are already copied into the the option name).

    I thought to use this option under option names, but when I choose Second Choice and Update is says nothing is done.

    Add ALL Option Values to ONE products for Option Name
    Update ONE product that has at least ONE Option Value and Add ALL Option Values in an Option Name


    How can I add these new Option Names and all 13 Options values. Do I still need to add them one by one?

    Many Thanks


    Also for the database backup, my host had some feature that backuped all the databases as a .gz archive. When I unpacked it, it didn't have a 3 letter extension, but I opened it with a text editor and could read some of the content. Is this a safe enough back-up instead of learning to use and configure MYPHPAdmin?

    Thanks
    http://unrealphd.com
    UnrealPHD.com - Video Game Design Tutorials

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    for each option name you will have to create the corresponding option values.
    If you are running the current version of the cart you will be able to add all of the option value for each option name as a group to the product in the attribute manager by clicking on the option name (then only the option values for that option name should show) and then using ctrl-click to each option value you want to add, then insert and all of them will be added at once.
    If you are running an older version you will need to add the add-on module for improved attributes controller to do it.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  8. #8
    Join Date
    Jan 2004
    Location
    232nm NW of paradise
    Posts
    28
    Plugin Contributions
    0

    Default Re: Is there an easy way to add Option Names with Option Values defined in another?

    FWIW, it appears contractions in Option Values will create an error when copying Option Values from one Option Name to another since a ' is not escaped.


    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'll send my cards to you.', '500')' at line 1
    in:
    [insert into products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) values ('79', '1', 'I'll send my cards to you.', '500')]
    Val
    REM: Rename your admin. CHMOD your files. Backup your DB. TAF? F is Friend or Foe!

 

 

Similar Threads

  1. 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
  2. Multiple Option Names, but same Option Values
    By The_Mech in forum General Questions
    Replies: 5
    Last Post: 5 Mar 2014, 06:23 PM
  3. Advice for 20plus option names with 20plus option values?
    By BrooklynArtist in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Apr 2011, 09:30 PM
  4. Whatīs that option? Option Names and Values Glo....
    By ryska in forum General Questions
    Replies: 0
    Last Post: 3 Dec 2007, 05:51 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