Skip to content

Commit

Permalink
fix: revert temp test for freebie rules with coupon required
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Nov 22, 2024
1 parent 7aa2b9b commit 5215508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/ecom/modules/apply-discount.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ ${discountedSkus.map((sku) => `\n${sku}: ${discountPerSku[sku].toFixed(2)}`)}
}
}

if (bestRule && discountValue) {
if (bestRule) {
// provide freebie products \o/
response.freebie_product_ids = bestRule.product_ids
if (discountValue) {
Expand Down

0 comments on commit 5215508

Please sign in to comment.