Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error in shopping cart


cameraguy

Recommended Posts

Hi i run a camera website and am having en error where whenever i go to the shopping cart i see an error on the bottom of the page(shown below).

i looked in my shopping cart file and dont even see those lines of code in it and am 100% clueless what to do to get rid of it

any help would mean the world to me

thanks!

 

 

"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 'GROUP BY s.name' at line 1

 

SELECT round( sum( p.products_price * rate * cb.customers_basket_quantity ) , 2 ) AS cost, s.name FROM customers_basket cb INNER JOIN products p ON p.products_id = cb.products_id INNER JOIN shipping_methods s ON s.products_shipping_class_id = p.products_shipping_class_id WHERE cb.customers_id = GROUP BY s.name"

Link to comment
Share on other sites

Hi i run a camera website and am having en error where whenever i go to the shopping cart i see an error on the bottom of the page(shown below).

i looked in my shopping cart file and dont even see those lines of code in it and am 100% clueless what to do to get rid of it

any help would mean the world to me

thanks!

"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 'GROUP BY s.name' at line 1

 

SELECT round( sum( p.products_price * rate * cb.customers_basket_quantity ) , 2 ) AS cost, s.name FROM customers_basket cb INNER JOIN products p ON p.products_id = cb.products_id INNER JOIN shipping_methods s ON s.products_shipping_class_id = p.products_shipping_class_id WHERE cb.customers_id = GROUP BY s.name"

You have not run an sql file to update your datebase (typically via phpMyAdmin). How to do it is in the forums. Check the contribs that you have installed for the sql file.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...