You need to change 'created_at' column in
with the customer's second purchase, this column will return a value of 1-2 .
product_id`) FROM `sales_order_item` GROUP BY `created_at` echo (string) $ select; $data = $this->connection->fetchAll($select); foreach ...
I think something likes this ->where('entity_id NOT IN (select product_id from sales_order_item where sales_order_item.created_at > "'.
Column type: Many to One; Column equation: MAX; Path: sales_order_item. product_id => catalog_product_entity.entity_id; Select a column: created_at; Filters:.
` created_at` = '2018-04-05 23:53:18', `scheduled_at` = '2018-04-05 ...
magento 2 sales_order_item created_at · magento 2 order email ...
xml Magento 2? You can add a new column, a field in sales_order_item table using db_schema.xml under your module, etc folder from Magento ...
Problem is because I have same column name ( created_at ) in custom table and in sales_flat_order_grid table. I'm getting this error. SQLSTATE[ ...
magento 2 sales_order_item created_at · magento layout ...