Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    86
    Plugin Contributions
    0

    Default option value manager inserting double records

    Not sure if im in the right category, but having an issue, not sure whats doing it, when i apply a new option value, it errors, with a duplicate record error.
    I replaced the mysecretadmin/option_value_manager.php as well as the other 2, option names,attributes controller, applyed the fix, and still haveing the issue, not sure if its another mod but it is inside this for statement:
    Code:
     for ($i=0, $n=sizeof($languages); $i<$n; $i ++) {
         if ((int)$languages[$i]['id'] > 0 && !in_array((int)$languages[$i]['id'], $ary)) {
    //      $db->Execute("INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES ((int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, " . (int)$languages[$i]['id'] . ", 'TEXT')");
          $db->Execute("INSERT INTO " . TABLE_PRODUCTS_OPTIONS_VALUES . " (products_options_values_id, language_id, products_options_values_name) VALUES (" . (int)PRODUCTS_OPTIONS_VALUES_TEXT_ID . ", " . (int)$languages[$i]['id'] . ", 'TEXT')");
        }
      }
    i know there are a few languages involved, but would that cause this?
    any help appreciated.
    ZC 1.5.1
    (too many mods to list)
    btw, is there a "prefered max mods" lol
    Jeff

  2. #2
    Join Date
    Jun 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: option value manager inserting double records

    Very interesting observation, the above routine, is supposed to insert the next available record, for some reason, it jumping a couple of hundred numbers?
    bad table? i cant figure out why that's doing that, the option names are ok, it only increments by 1, but the option names increments by more than 200 O.O!
    Any help appreciated.
    Jeff

  3. #3
    Join Date
    Jun 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: option value manager inserting double records

    Can a mod cancel this thread, moved topic to relevant issue here:
    http://www.zen-cart.com/showthread.p...40#post1222840

 

 

Similar Threads

  1. Problem with Attributes Controller, Option Name Manager, Option Value Manager
    By Wulf359 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 27 Jun 2013, 08:54 PM
  2. Option Value manager problem
    By staycu in forum Customization from the Admin
    Replies: 1
    Last Post: 17 Jun 2011, 11:54 AM
  3. Inserting Option Value for Downloadable
    By annasue in forum General Questions
    Replies: 0
    Last Post: 10 Dec 2010, 05:26 PM
  4. [duplicate report] Option Value Manager
    By jtjohnston in forum Bug Reports
    Replies: 3
    Last Post: 21 Mar 2008, 07: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