Skip to content

Commit

Permalink
Improved cart/checkout performance optimizing coupon code check query (
Browse files Browse the repository at this point in the history
…#1110)

Co-authored-by: Hannes Drittler <h.drittler@lemundo.de>
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
  • Loading branch information
3 people committed Jan 19, 2023
1 parent cacdb5f commit b787fc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function setValidationFilter($websiteId, $customerGroupId, $couponCode =
$connection->quoteInto(
'main_table.rule_id = rule_coupons.rule_id AND main_table.coupon_type != ?',
Mage_SalesRule_Model_Rule::COUPON_TYPE_NO_COUPON
),
) . $connection->quoteInto(' AND rule_coupons.code = ?', $couponCode),
['code']
);

Expand Down

0 comments on commit b787fc6

Please sign in to comment.