Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    17
    Plugin Contributions
    1

    Default SQL error with products in cart with attributes

    Hello,

    It seems that if I click on any products in the shopping cart that have attributes to goto the products page, I see the following error at the bottom:

    "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 ':b2a4b138b56aed300af272c314626530' at line 1
    in:
    [SELECT * FROM products WHERE products_id = 197:b2a4b138b56aed300af272c314626530]"

    Does anyone know why? Thanks.

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

    Default Re: SQL error with products in cart with attributes

    What version of Zen Cart?
    What version of MySQL?
    What version of PHP?
    What addons/contributions have you installed?
    What code-customizations have you made to your site?
    .

    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
    May 2007
    Posts
    17
    Plugin Contributions
    1

    Default Re: SQL error with products in cart with attributes

    Ah sorry it was indeed some code-customizations I made that caused the problem.

 

 

Similar Threads

  1. v139h adding attributes to all products with sql query
    By delia in forum General Questions
    Replies: 8
    Last Post: 22 Apr 2014, 07:40 PM
  2. v151 Add multiple products with attributes to cart with single click
    By mark777 in forum General Questions
    Replies: 1
    Last Post: 16 May 2013, 08:33 AM
  3. SQL error with empy shopping cart
    By helpme in forum General Questions
    Replies: 2
    Last Post: 25 Feb 2010, 07:22 PM
  4. Products with Attributes - Instant Add to Cart with PopUp?
    By ksoup in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Jun 2009, 05:52 PM
  5. Add to Cart Not Appearing with Products with Attributes. Please help me!?!?
    By alegria in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 26 Jun 2008, 11:46 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