# Basket recalculation on the fly depending on delivery option

**URL:** <https://forum.modmore.com/t/basket-recalculation-on-the-fly-depending-on-delivery-option/2058>\
**Category:** SimpleCart\
**Created:** [March 30, 2020, 7:33am UTC](https://forum.modmore.com/t/basket-recalculation-on-the-fly-depending-on-delivery-option/2058 "2020-03-30T07:33:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![himurovich](https://forum.modmore.com/user_avatar/forum.modmore.com/himurovich/32/441_2.png) [@himurovich](https://forum.modmore.com/u/himurovich)\
**Post date:** [March 30, 2020, 7:33am UTC](https://forum.modmore.com/t/basket-recalculation-on-the-fly-depending-on-delivery-option/2058/1 "2020-03-30T07:33:52Z")

</div>

Hi,  
I’ve added another delivery option and wondering how can I update the total cost of the basket on the fly if I change delivery option, are there any examples? I have not found.  
Should I send POST request on option change.or add some custom code?  
Here is my situation: [https://take.ms/ztCQ8](https://take.ms/ztCQ8)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![himurovich](https://forum.modmore.com/user_avatar/forum.modmore.com/himurovich/32/441_2.png) [@himurovich](https://forum.modmore.com/u/himurovich)\
**Post date:** [April 6, 2020, 8:32am UTC](https://forum.modmore.com/t/basket-recalculation-on-the-fly-depending-on-delivery-option/2058/2 "2020-04-06T08:32:44Z")

</div>

Hi,  
If there is no solution I’m going to fix it on my own…as soon as I finished I’ll share the result and how it works.  
Thx.

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [April 13, 2020, 1:00pm UTC](https://forum.modmore.com/t/basket-recalculation-on-the-fly-depending-on-delivery-option/2058/3 "2020-04-13T13:00:49Z")

</div>

Just to confirm, SimpleCart does not have this type of behavior available.

It does calculate the total price when rendering the various shipping options. If you format those in a specific way (perhaps adding them as data attributes on the radio input), you could fetch those and dynamically update your cart summary with javascript.
