I require an SQL query to retrieve information about the promotions applied to an order from the sales order table. The field “applied_rule_ids” is utilized to obtain all rule IDs. However, a challenge arises when a rule, such as “buy 2 get 1 free,” is stored in both the sales_order and quote tables. The issue lies in the application of this rule, where its ID is present in the quote even if the shopping cart contains only one item. Consequently, when placing an order with a single item, the rule ID is included in “applied_rule_ids,” causing the SQL query to display the order as having a promotion applied, even though it is not actually applied.
You may also like
I know in Magento 2.3, we can able to link youtube videos with products. At the end of the youtube video, I […]
submitted by /u/bytefury [link] [comments]
I have a Problem with my SoftEther Server: There is no way to tell the SoftEther server manager to listen on port […]
I have this date field in a form (a ui component) and i’m tryig to make it “required field”, I tried with […]