我想在购物车上的Virto Commerce中进行促销。在我的例子中,如果客户购买至少800瑞典克朗,我想用200 SEK折扣购物车,在我的例子中,增值税/消费税是25%。Virto Commerce营销模块上的购物车折扣
这是我在寻找的效果:
Cart
subTotal: 640
subTotalWithTax: 800
discountAmount: 160
discountTotalWithTax: 200
total: 480
totalWithTax: 600
至于我可以告诉营销模块只支持其中折扣税前加促销活动。在店面代码硒评论:
foreach (var reward in cartRewards)
{
//When a discount is applied to the cart subtotal, the tax calculation has already been applied, and is reflected in the tax subtotal.
//Therefore, a discount applying to the cart subtotal will occur after tax.
//For instance, if the cart subtotal is $100, and $15 is the tax subtotal, a cart - wide discount of 10 % will yield a total of $105($100 subtotal – $10 discount + $15 tax on the original $100).
if (reward.IsValid)
{
var discount = reward.ToDiscountModel(ExtendedPriceTotal);
Discounts.Add(discount);
DiscountAmount = discount.Amount;
}
}
我想这是在某些市场的普遍做法。但是,这是瑞典的B2C解决方案。在800瑞典克朗的推车上宣传200瑞典克朗的折扣应该使面向顾客的总价格为600瑞典克朗,包括税费。
This is an img of my promotion in the Marketing Module
这给我上车JSON
Cart
subTotal: 640
subTotalWithTax: 800
discountAmount: 160
discountTotal: 160
discountTotalWithTax: 160
subTotalDiscount: 0
subTotalDiscountWithTax:0
discountTotalWithTax: 160
taxTotal: 160
total: 640
totalWithTax: 800 (Calculated. Not in standard JSON response)
下列因此,无论我已经错过配置的促销或我实施促销店面代码是缺乏某种方式。