ilih Posted October 14, 2005 Posted October 14, 2005 Hi, When I look in the admin by the customers orders, I got the volowing error: 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 '-20, 20' at line 1 select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '4' and s.orders_status_id = '0' and ot.class = 'ot_total' order by o.orders_id DESC limit -20, 20 Also the customer can't please any order. When the customer is in CHECK_OUT_SHIPPING and he wants to go further he will be linked to the SHOPPING_CART. Check stock level = false!!!!!
Boudy Posted October 14, 2005 Posted October 14, 2005 try adding the following code to classes/split_page_results.php round line 38 add this: $offset = ($max_rows_per_page * ($current_page_number - 1)); if ($offset < 0) $offset = 0; $sql_query .= " limit " . $offset . ", " . $max_rows_per_page; cheers
ilih Posted October 14, 2005 Author Posted October 14, 2005 Thanx the error is gone. But the customer can't still place any order.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.