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 '000000 where products_id = '1'' at line 1 in: [update zen_products set products_ordered = products_ordered + 1,000000 where products_id = '1']

When placing an order, the following error appears:
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 '000000 where products_id = '1'' at line 1
in:
[update zen_products set products_ordered = products_ordered + 1,000000 where products_id = '1']



Solution:
Edit the language-file for your active language.  For "english", it's english.php

You'll see a line that says: 
@setlocale(LC_ALL, '<something-here>');

The problem is on LC_ALL

Change it to LC_TIME instead.  Example for portuguese:
@setlocale(LC_TIME, 'pt_PT.ISO8859-15');
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I find out what version of Zen Cart or PHP or MySQL I'm using?

To find out what version of Zen Cart or PHP or MySQL you are currently using, you can simply go...

Getting a BLANK PAGE? Here's the answer ...

If you're getting a blank page when trying to browse to a certain page on your store, or after...

What's New in the Upcoming v2.0 release?

Database Abstraction Layer and Sql CacheThe abstraction layer has been re-factored to include a...

Image Preparation - How-to

I've seen several posts where people obviously aren't quite sure about the best way to set up...

Some tips to modify stylesheet

1. Download Web Developer extension for FireFox here2. Install & restart FireFox. You should...