Exception #0 (Zend_Db_Statement_Exception):
SQLSTATE[42000]: Syntax error or access violation: 1064
You have an error in your SQL syntax;
check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1,
query was:
SELECT `commerce365_cached_price`.`price_data`, `commerce365_cached_price`.`product_id`
FROM `commerce365_cached_price`
WHERE (product_id IN('2', '3', '4', '5', '6'))
AND (customer_id = '')
AND (last_updated >= NOW() - INTERVAL HOUR)
This occurs when Cache hours is not filled in, in the configuration.
When B2B pricing is not enabled you can't see the configuration field for cache hours.
The code where it's going wrong:
vendor/commerce365/module-customer-price/Model/Command/GetCachedPriceData.phpLine: 34 & 41
Error
This occurs when Cache hours is not filled in, in the configuration. When B2B pricing is not enabled you can't see the configuration field for cache hours.
The code where it's going wrong:
vendor/commerce365/module-customer-price/Model/Command/GetCachedPriceData.php
Line: 34 & 41