简体   繁体   English

在申请折扣之前,需要在商务服务器中输入优惠券,可能吗?

[英]Make coupon entry in commerce server required before a discount is applied, possible?

I have created a discount in commerce server, and linked it with a list of private coupons. 我在商务服务器中创建了一个折扣,并将其与私人优惠券列表相关联。 The problem is that after running the basket pipline it applies this discount even though no coupon was ever entered. 问题在于,即使没有输入优惠券,在运行篮式管道之后它仍会应用此折扣。 It seems to me me this should be the default behavior when you create a discount which contains a list of coupons. 在我看来,当您创建包含优惠券列表的折扣时,这应该是默认行为。 There does not appear to be any obvious way of doing this. 似乎没有任何明显的方式来执行此操作。

My question is how do you make the coupons the condition to apply a given discount? 我的问题是,您如何使优惠券成为应用给定折扣的条件?

After fumbling around for a few hours, I figured out why this was happening to me. 经过几个小时的摸索,我弄清楚了为什么会发生在我身上。 My issue was not caused because of the default commerce server behavior. 我的问题不是由于默认的商业服务器行为引起的。 If this ever happens to you, here is the fix. 如果您遇到这种情况,请使用此修复程序。 In the basket pipline file make sure you add the stages of: "Commerce Reserve Promotion Codes" before "OrderDiscount" and make sure you have "Commerce Record Promotion Codes" before "RequiredOrderAdjustPriceCy" but after "OrderLevelDiscountApply" . 在购物篮pipline文件中,请确保您添加以下阶段:在“ OrderDiscount”之前添加“ Commerce Reserve促销代码” ,并确保在“ RequiredOrderAdjustPriceCy”之前但在“ OrderLevelDiscountApply”之后具有“ Commerce Record促销代码 Alternatively download the StarterSite project from microsoft and use the basket pipline from there. 或者从Microsoft下载StarterSite项目,然后从那里使用购物篮提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM