I have a problem in my checkout, when i select other payment method with different price charge it doesnt refresh my summary list, i have to refresh page for it to make the update the summary list prices
This is my code:
Payment methods radio input:
And this is my summary :
{if !$cart.shipping_failed && $cart.chosen_shipping && $cart.shipping_required && $cart.display_shipping_cost } <tr> <td class="ty-checkout-summary__item">{__("shipping")}</td> <td class="ty-checkout-summary__item ty-right" data-ct-checkout-summary="shipping"> <span>{include file="common/price.tpl" value=$cart.display_shipping_cost}</span> </td> </tr> {/if} {if ($cart.subtotal_discount|floatval)} <tr class="ty-checkout-summary__order_discount"> <td class="ty-checkout-summary__item">{__("order_discount")}</td> <td class="ty-checkout-summary__item ty-right discount-price" data-ct-checkout-summary="order-discount"> <span>-{include file="common/price.tpl" value=$cart.subtotal_discount}</span> </td> </tr> {hook name="checkout:discount_summary"} {/hook} {/if} {if $cart.payment_surcharge && !$take_surcharge_from_vendor} <tr> <td class="ty-checkout-summary__item">{$cart.payment_surcharge_title|default:__("payment_surcharge")}</td> <td class="ty-checkout-summary__item ty-right" data-ct-checkout-summary="payment-surcharge"> <span>{include file="common/price.tpl" value=$cart.payment_surcharge}</span> </td> </tr> {math equation="x+y" x=$cart.total y=$cart.payment_surcharge assign="_total"} {/if} {if $cart.taxes} <tr> <td class="ty-checkout-summary__item ty-checkout-summary__taxes">{__("taxes")}</td> <td class="ty-checkout-summary__item"></td> </tr> {foreach from=$cart.taxes item="tax"} <tr> <td class="ty-checkout-summary__item" data-ct-checkout-summary="tax-name {$tax.description}"> <div class="ty-checkout-summary__taxes-name">{$tax.description} <bdi>({include file="common/modifier.tpl" mod_value=$tax.rate_value mod_type=$tax.rate_type}{if $tax.price_includes_tax == "Y" && ($settings.Appearance.cart_prices_w_taxes != "Y" || $settings.Checkout.tax_calculation == "subtotal")} {__("included")}</bdi>{/if})</div> </td> <td class="ty-checkout-summary__item ty-right" data-ct-checkout-summary="taxes"> <span class="ty-checkout-summary__taxes-amount">{include file="common/price.tpl" value=$tax.tax_subtotal}</span> </td> </tr> {/foreach} {/if} {hook name="checkout:summary"} {/hook} <tr> <td colspan="2" class="ty-checkout-summary__item"> {include file="views/checkout/components/promotion_coupon.tpl"} </td> </tr> </tbody> <tbody> <tr> <th class="ty-checkout-summary__total" colspan="2" data-ct-checkout-summary="order-total"> <div> <strong class="et-checkout-summary__total-title">{__("order_total")}</strong> <span class="ty-checkout-summary__total-sum">{include file="common/price.tpl" value=$_total|default:$cart.total class="ty-price ty-strong"}</span> </div> </th> </tr> </tbody> </table>
It should fresh with ajax but it doesnt, can you help me?
Thanks
{$cart.amount} {__("items")} {include file="common/price.tpl" value=$cart.display_subtotal}