Notice: Undefined index: product_id in /var/www/promcen/data/www/promcenter.org/system/storage/modification/catalog/controller/product/product.php on line 10
Fatal error: Uncaught Exception: Error: 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 1<br />Error No: 1064<br />SELECT p.product_id,p.sku,ps.stock,s.name_storage,s.id_storage FROM `1c_mart_product_stock` as ps INNER JOIN `1c_mart_storage` as s ON(ps.id_storage=s.id_storage) INNER JOIN `oc_product` as p ON(p.product_id=ps.id_product) WHERE ps.id_storage IS NOT NULL AND p.product_id= in /var/www/promcen/data/www/promcenter.org/system/library/db/mysqli.php:40
Stack trace:
#0 /var/www/promcen/data/www/promcenter.org/system/library/db.php(16): DB\MySQLi->query('SELECT p.produc...', Array)
#1 /var/www/promcen/data/www/promcenter.org/catalog/model/stock/stock.php(27): DB->query('SELECT p.produc...')
#2 /var/www/promcen/data/www/promcenter.org/system/storage/modification/system/engine/loader.php(178): ModelStockStock->getStoragesByProduct(NULL)
#3 /var/www/promcen/data/www/promcenter.org/system/engine/proxy.php(25): Loader->{closur in /var/www/promcen/data/www/promcenter.org/system/library/db/mysqli.php on line 40