Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default 1064 when adding more than 12 products to cart

    If I have 1 to 12 products in my cart all is fine. But if I add another one, or two or three, I get the following error in the shopping cart. I've googled this for ages and come up with nothing. PLEASE somebody out there can you help me with this.

    <!--
    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 '-1)' at line 1
    in:
    [(select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '211' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '209' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '204' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '234' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '232' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '323' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '495' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '382' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '414' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '405' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '201' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '203' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 2) UNION (select p.products_id, p.products_image from zen_products_xsell xp, zen_products p, zen_products_description pd where xp.products_id = '205' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit -1)]

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: 1064 when adding more than 12 products to cart

    This is a problem with the shopping cart upsell/crossell

    http://www.zen-cart.com/forum/showthread.php?t=137536
    See Post 10

    Its a maths bug in this mod.
    you either fix the maths problem......
    or add a quick fix that stops the limit going less than 1

  3. #3
    Join Date
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: 1064 when adding more than 12 products to cart

    You are BRILLIANT! Thank you. All works perfectly. MUCH APPRECIATED.

 

 

Similar Threads

  1. v151 cart not adding extra money when customer is buying more than one item
    By amart79196 in forum Addon Shipping Modules
    Replies: 0
    Last Post: 5 Mar 2014, 08:20 PM
  2. Checkout Page disappears when more than 19 item in cart
    By Peter Homann in forum General Questions
    Replies: 3
    Last Post: 19 Nov 2010, 04:42 AM
  3. Products not displaying when more than 1 is listed in category
    By Matty020277 in forum Basic Configuration
    Replies: 8
    Last Post: 14 Nov 2009, 11:23 AM
  4. Restrict adding a product to cart more than once?
    By Rossaf in forum General Questions
    Replies: 9
    Last Post: 29 Aug 2009, 10:22 PM
  5. Adding more than just 3 products to the featured product box
    By peter3827 in forum Basic Configuration
    Replies: 2
    Last Post: 28 Apr 2009, 07:32 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