Zen Cart Logo
Forums / General Questions / Deleting items from shopping cart--error showing

Deleting items from shopping cart--error showing

Views: 763

Results 1 to 5 of 5
23 Apr 2013, 12:22 AM
#1
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Deleting items from shopping cart--error showing

Deleting the items goes thru just fine but at the bottom of the page I got this when testing something then deleting the items:

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 '' at line 6
in:
[select p.products_id, pd.products_name, products_date_available as date_expected, p.master_categories_id from zen_products p, zen_products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >20130422235959 order by date_expected desc limit ]

Idea on how to fix?

23 Apr 2013, 1:01 AM
#2
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Deleting items from shopping cart--error showing

DarkAngel:

Deleting the items goes thru just fine but at the bottom of the page I got this when testing something then deleting the items:

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 '' at line 6
in:
[select p.products_id, pd.products_name, products_date_available as date_expected, p.master_categories_id from zen_products p, zen_products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >20130422235959 order by date_expected desc limit ]

Idea on how to fix?The end of the query should show a number
eg: date_expected desc limit 1

right syntax to use near '' at line 6
Notice the empty value between the '' (2 single quotes)
Probably a variable that is not defined or has an empty value. So it doesn't show the limit value in the query.

23 Apr 2013, 3:19 AM
#3
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Deleting items from shopping cart--error showing

ok, I did it again and there is nothing directly after that ending "limit"

so is there a way to fix this or does it intrude on anything to leave as is.

23 Apr 2013, 3:47 AM
#4
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Deleting items from shopping cart--error showing

DarkAngel:

ok, I did it again and there is nothing directly after that ending "limit"

so is there a way to fix this or does it intrude on anything to leave as is.On a hunch go to....
admin/configuration/maximum Values/Upcoming Products

See if there is a numeric value there. Default is 10
My hunch is that there is a non numeric value there.

23 Apr 2013, 4:10 AM
#5
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Deleting items from shopping cart--error showing

YES!!!! Thanks, that did the trick. I did not have any number there since we do not have the coming soon/expected showing. It never worked in the beginning --- if I remember right when the customers would choose it for their carts then the item was released...it would not download so I would have to send them the zip... something like that or they

Have not tried it since...lol heap big chicken I is.