cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery charges are getting calculated and added to the cart total in cart page.

0 Kudos
881

In hybris 6.0, The delivery charges are not calculated until user is in cart page. If customer goes to checkout page, delivery charges is getting calculated and adding to the cart total. When customer comes back to the cart page the delivery charge is also shown as it is now part of the cart total. even if the value is not reached to the eligible level, the promotion is getting fired and the user can see the promotional message in the cart.

0 Kudos

This problem is with promotion engine. In promotion module it is working fine

former_member357259
Active Contributor
0 Kudos

Yes, the accelerator storefront shows the cart total with the delivery cost included in it. But promotion rules don't use the same cart total calculation. You will notice that that threshold for the promotion used is calculated as Displayed cart total - delivery charges, which is the cart total of the products without delivery cost.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member357259
Active Contributor
0 Kudos

Hi Lavanya,

If you are using the legacy promotion module, this could be a problem. You will have to custom implement the desired behavior.

With the new promotion engine (v6.0 and beyond), the delivery cost is not included as part of cart total so it should work fine there.

danielkarp
Discoverer
0 Kudos

Hi Charles,

The RuleCartTotalConditionTranslator irTotalCondition sets the attribute "total" for CartRao. But my CartRao total includes the delivery costs.

AbstractOrderRaoPopulator sets it from cartModel TotalPrice.

In AbstractOrderRaoToOrderConverter the OrderCharge shippingCharge will be added. In my case its 29.0 XY dontCharge:false type:SHIPPING

Recalculate(DefaultRuleEngineCalculationService) totals sets cartRao.total from Order.getTotal.

Order.getTotal calculated with subTotal-discount+totalCharges

shipping charge added / ChargeType.SHIPPING is not disabled

What is going wrong?