Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Attribute Puzzle!

    Hi,

    I have taken data from a MySQL 4.0 Database, and inserted this in a new MySQL 5.0 database. Everything is going well, apart from the attributes. I have started with completely empty tables in the database for:
    • products_options
    • products_options_values
    • products_options_values_to_products_options

    Now when I create a new option name, and assign option values to this, I will not be able to insert the various options in my products.
    What happens is that for the option name, I get a list of only option value 1, that keeps repeating for all the values that I have created.
    Also if I create another option name, it repeats the value of option 1 several times.

    180537 Contrast Colour 45 White + 0.0000 + 0
    180538 Contrast Colour 45 White + 0.0000 + 0
    And so on.

    I think it has something to do with the number 180537 and ..538 etc, as it is a new database it surely should be starting with 000001 ..etc. But I have not been able to find that table, so I can reset it to 1.

    So what ever I do, I can create several option names, but my customers will only ever be able to choose the first value of option 1

    Any one know how to fix this?

    Many thanks,

    Goshawk

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

    Default Re: Attribute Puzzle!

    Does this happen on a clean database too ?

    You said you copied data from a v4 database to a v5 database. So, next question is ... does it happen if you follow the same process to a 2nd, new, v4 database as well ?

    What version of Zen Cart are you using?
    What addons/contributions are installed ?
    .

    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
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Attribute Puzzle!

    I have not inserted this info in another V4 database, I am using the latest V1.3.7 Zen Cart, with the following plugins installed:
    • Column Layout
    • Google Froogle
    • Google Sitemap
    • Maxmind Orders
    • Direct One Payment Module

    All but Maxmind orders I have used before without a problem, I have not been able to test the Maxmind module yet.

    Thanks,

    Goshawk

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Attribute Puzzle!

    ... and if you *do* set up another MySQL 4 database and follow the same steps, what happens ?
    .

    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.

  5. #5
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Attribute Puzzle!

    Am on to it..LOL going to try.

  6. #6
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Attribute Puzzle!

    Hi DrByte,

    I have made a backup of my MySQL 5 database, and created a new MySQL 4.1 database, and inserted the backup data.

    The same is happening, only value 1 of the first option name is inserted, as many times as I have values for that option name.

    Goshawk

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

    Default Re: Attribute Puzzle!

    Look at the table for:
    products_options_values_to_products_options

    Is the field:
    products_options_values_to_products_options_id

    set to auto_increment in the Extra column?
    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
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Attribute Puzzle!

    Ajeh's got a good point there. When moving between MySQL versions sometimes the auto-increment setting can get dropped by the export process depending on the options selected when preparing to do the export. There are about 65 tables using auto-increment in Zen Cart.
    .

    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
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Attribute Puzzle!

    Hi Ajey and DrByte,

    Yes that is set to auto_increment.

    I have a backup copy of the SQL file attached, maybe it is something quite obvious.

    Goshawk
    Attached Files Attached Files

 

 

Similar Threads

  1. http & https puzzle
    By Renz in forum General Questions
    Replies: 11
    Last Post: 7 Oct 2010, 04:39 AM
  2. messageStack Puzzle
    By hengster in forum General Questions
    Replies: 0
    Last Post: 31 Aug 2010, 08:35 AM
  3. Gift Certificate Attribute Puzzle
    By edadk in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 30 Jul 2010, 07:30 PM
  4. Shipping price plus puzzle
    By Kryspen in forum Customization from the Admin
    Replies: 1
    Last Post: 8 Jun 2010, 06:15 PM
  5. Attributes, Options and Values puzzle
    By vicgicnlu in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Sep 2008, 06: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