Jump to content

when changeing a order to compleate


Guest loki951510

Recommended Posts

Guest loki951510

when changeing a order to compleate it get this error in system error log

File: [gui.class.php] Line: [1001] "SELECT `I`.`product_id`,`I`.`description`,`I`.`name`, `G`.`price`-`G`.`sale_price` AS `saving` FROM `CubeCart_pricing_group` AS `G` INNER JOIN `CubeCart_inventory` AS `I` ON `G`.`product_id` = `I`.`product_id` WHERE `G`.`price` > `G`.`sale_price` AND `G`.`sale_price` > 0 AND `G`.`group_id` IN(1) AND `I`.`status` = '1' LIMIT 3 OFFSET -3" - 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 '-3' at line 1

Link to comment
Share on other sites

  • 4 weeks later...

This could be bug #364.

In the file /classes/db/database.class.db at around line 446, find:

public function query($query, $maxRows = false, $page = 0, $cache = true)

Change to:

public function query($query, $maxRows = false, $page = false, $cache = true)

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.

Guest
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...