opencart / opencart

A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.

Home Page:https://www.opencart.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error No: 1054: Unknown column 'store_id' in 'where clause'

cgcmart opened this issue · comments

$this->db->query("DELETE FROM `" . DB_PREFIX . "cart` WHERE `store_id` = '" . (int)$this->config->get('config_store_id') . "' AND (`api_id` > '0' OR `customer_id` = '0') AND `date_added` < DATE_SUB(NOW(), INTERVAL 1 HOUR)");

DELETE FROM oc_cart WHERE store_id = '0' AND (api_id > '0' OR customer_id = '0') AND date_added < DATE_SUB(NOW(), INTERVAL 1 HOUR): in ../system/library/db/mysqli.php on line 122

according to db_schema, manually add "store_id" column to table "oc_cart" in database.