Expose the appropriate associate Promotion parameters for Coupon actions
, conditions
#1787
Labels
Milestone
actions
, conditions
#1787
Is your feature request related to a problem? Please describe.
Consider this Scenario
i have productA, productB both assign to
facet 1USD
create promotion without
coupon code
, setupaction
withfacet 1USD
to give fixed amount discountwhile add item to cart it will automatically appliy this
promotion
i want to implement discount logics like :
we have 2 order line, first one(productA) used
1 USD discount, for
second orderline (productB)i don't want to apply the same discount
Describe the solution you'd like
for
PromotionItemAction
we need to know what Promotion we are dealing with, so we can check to see if that promotion has already been applied to any other order lines.for
any other order lines
viaawait orderService.findOneByOrderLineId(ctx, orderLine.id)
to fetch.to check
orderLine.discounts
,orderItem
.discountsasync execute(ctx, orderItem, orderLine, args) {....
it need to exposeassociatePromotion
to us is fine.Describe alternatives you've considered
Additional context
vendure@ 1.7.1
The text was updated successfully, but these errors were encountered: