Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Aug 2005
    Posts
    63
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    I have the dual pricing add-on and I was experiencing this error when copying attributes to another product or a category. I made the fixes to admin/includes/functions/general.php that were suggested by Boylan, and that fixed the problem - I can copy attributes to another product.

    However, now I can't add options to an item. I get the following error:

    1136 Column count doesn't match value count at row 1
    in:
    [insert into products_attributes values (0, '237', '71', '0', '0', '+', '0', '1', '0', '+', '0', '0', '1', '', '1', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '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.

    I attached the products_attributes table to this message:
    http://www.zen-cart.com/forum/showpo...6&postcount=76

    Is there something additional that I need to add to admin/includes/functions/general.php?

  2. #12
    Join Date
    Sep 2006
    Posts
    257
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    i made the changes and i get the same error still ...

  3. #13
    Join Date
    Feb 2007
    Location
    Collingwood, Victoria, Australia, Australia
    Posts
    2
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    Quote Originally Posted by boylan View Post
    For future reference:

    The problem comes because dual prices/wholesale pricing adds a field to the attributes table.

    admin/includes/functions/general.php

    after line 1914 ish:
    Code:
              '" . $products_copy_from->fields['options_values_price'] . "',
    add:
    Code:
              '" . $products_copy_from->fields['options_values_price_w'] . "',
    after line 1943 ish:
    Code:
              options_values_price='" . $products_copy_from->fields['options_values_price'] . "',
    add:
    Code:
              options_values_price_w='" . $products_copy_from->fields['options_values_price_w'] . "',

    it works, thank you very much

  4. #14
    Join Date
    Feb 2007
    Location
    Collingwood, Victoria, Australia, Australia
    Posts
    2
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    Quote Originally Posted by g0d4lm1ty View Post
    i made the changes and i get the same error still ...
    maybe your version is different, I have tried, it works very well

  5. #15
    Join Date
    May 2007
    Location
    Wales
    Posts
    28
    Plugin Contributions
    1

    Default Re: Attribute Error - 1136 Column count

    It did not seem to work for me .

    so I droped "options_values_price_w" in "products_attributes"

    They both seem to work fine now .. but I am still testing

  6. #16
    Join Date
    May 2007
    Location
    Wales
    Posts
    28
    Plugin Contributions
    1

    Default Re: Attribute Error - 1136 Column count

    Ok I take that back .. Not working

  7. #17
    Join Date
    May 2007
    Location
    Wales
    Posts
    28
    Plugin Contributions
    1

    Default Re: Attribute Error - 1136 Column count

    ok I downloaded "dual pricing_1_3-beta3M"

    and reinstalled this and knock on wood it is all working now

    made sure i tested for a few days before posting this time .

    Hope this helps

  8. #18
    Join Date
    Mar 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Attribute Error - 1136 Column count

    Thanks for posting this fix, it worked perfectly. Veyr much appreciated by us Newer Zenners :)

  9. #19

    Default Re: Attribute Error - 1136 Column count

    Do I add the line

    " . $products_copy_from->fields['options_values_price_w'] . "',

    after the original code,
    or do I just add the "_w" to the current code?

  10. #20

    Default Re: Attribute Error - 1136 Column count

    Nevermind, I played with it and you have to add it right under the existing code. All is working great!

 

 
Page 2 of 4 FirstFirst 1234 LastLast

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
  •