We ran into a problem.
We have a site where you can use your wallet value to buy some products. The Wallet value the customer wants to use do we call a Wallet Promotion.The customer selects the Wallet amount (max amount of order subtotal ex vat or max of customer wallet amount) en after that we create a Promotion of type WalletPromoData (override from OrderPromotion).
Now we have the following scenario:
Does anyone else ran into the same problem or something like this?
Thanks in advance.
It looks like the promotion is triggered, but the amount in the cart would become -400, which is, of course, invalid? I think for what you want to do, a giftcard like implementation would be a better solution. There is a sample implementation in Foundation
Thanks for your answer, but this is not what we are looking for.We use the WalletPromoData as a discount on the subtotal of the order, instead of a default coupon code.
Maybe we can have an email conversation or something like that to describe the situation better?I'm from the Netherlands as well.
Hi Sander, it's probably better to describe it here so others can chime in, as I am kinda swamped with work. But from what you are describing, you can't really use a promotion for it as you can't decrease the "value" of a promotion. Or you can set the minimum amount spent to trigger the promotion to the value of the "WalletPromoData"?
Hi, finally we fixed it by running the promotion engine after the promotion was updated:
var promotionUpdated = WalletManager.UpdateWalletPromotionsInCart(Cart, GetProductsInCart());
var promotionEngine = ServiceLocator.Current.GetInstance<IPromotionEngine>();
// Evt nogmaals RunCartWorkflows aanroepen