0

バート コマースのカートでプロモーションを行いたいと考えています。私の例では、顧客が少なくとも 800 SEK で購入した場合、カートを 200 SEK 割引したいと考えています。私の例では VAT/GST は 25% です。

これは私が探している効果です:

Cart
subTotal:             640
subTotalWithTax:      800

discountAmount:       160
discountTotalWithTax: 200

total:                480
totalWithTax:         600

私が知る限り、マーケティング モジュールは、割引が税抜きで適用されるプロモーションのみをサポートしています。ストアフロント コードのコメント:

ShoppingCart.cs#L390

        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 SEK のカートで宣伝されている 200 SEK の割引は、税込みで合計 600 SEK の顧客に直面するはずです。


これは、マーケティング モジュールでの私のプロモーションのイメージです

これにより、カート 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)

したがって、プロモーションの設定を忘れたか、プロモーション用の店頭コードの実装が何らかの形で欠けています。

4

1 に答える 1