on ‎2018 Jul 23 8:46 PM
Hello,
I am looking at the OOTB store front and I am seeing the discount price not included in total. The total price showing without discount value.
Is there any setting that I need to configure to include the discounts part of total order value? or If there is no setting any one has any idea what class need modify to include the discounts part of total?
Thanks in advance.

Request clarification before answering.
Thanks for you response Nitesh.
is that Order discount apply is not OOTB? Do I need to make code changes to apply order level discount? I thought the discounts will apply part of total automatically.
In the DefaultCalculationService.java the discounts is set OOTB.
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sasi,
If its an order level discount, then you have to set the discounted value ($20) to the setGlobalDiscountValue() on cartModel.
Then you have to save this cart model to give the order level discount ($20)
List<DiscountValue> discountList = new ArrayList<DiscountValue>();
final DiscountValue discountValue = new DiscountValue("code", 20.0 , true, "USD" );
discountList.add(discountValue);
cartService.getSessionCart().setGlobalDiscountValues(discountList);
modelService.save(cartService.getSessionCart());
modelService.refresh(cartService.getSessionCart());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.