我想在購物車上的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)
下列因此,無論我已經錯過配置的促銷或我實施促銷店面代碼是缺乏某種方式。