以下是更新購物車總額的程式，但當中存在無法正確更新的問題，請修正：
function usercartTotal() {

    var cartTotal = 0;

    let HKFormatDollar = new Intl.NumberFormat('zh-Hant-HK', {
        style: 'currency',
        currency: 'HKD',
    });


    $('#cart-container .store-group').each(function() {
        var storeName = $(this).data('store');
        var totalSum = 0;
    
        $(this).find('.product-line-price').each(function() {
            var val = parseFloat($(this).data('value').toString().replace("HK$", ""))|| 0;
            totalSum += val;
            cartTotal += val;
        });
        
        console.log('Store: ' + storeName + ' 總和為: ' + totalSum);
    });
    
    $("#product_total").text(HKFormatDollar.format(cartTotal));
    $("#final_total").text(HKFormatDollar.format(parseFloat(cartTotal) + parseFloat($("#shipping-fee").data('value'))));
    
    /*
    if($("#cart_table:visible").length > 0){
        $("#cart_table > tbody > tr > .total-price  > .product-line-price").each(function (i) {
    
            cartTotal = parseFloat(cartTotal) + parseFloat($(this).text().replace(/[^\d\.]/g, ''));
    
        });
        $("#final_total").text(cartTotal.toFixed(2));
    }
    */

    

}


相關HTML 範例：
<div class="cart-page">

  <div class="cart-main" id="cart-container">

                  <div class="store-group" data-store="網上商店">
          <div class="store-name">網上商店</div>
          <div class="cart-items">
                        <div class="cart-item" data-id="10" data-store="網上商店" data-price="30.00">
              <button class="product-removal remove-btn" title="移除商品" aria-label="移除商品">
                <i class="ph ph-trash" name="remove_inventory" id="remove_inventory" data-id="10" style="font-size:26px"></i>
              </button>
              <img src="https://yymart.com.hk/uploads/media/2025/799x799_product_10.webp" alt="Banitore 便利妥 - 心相印衛生濕紙巾 (20 x 30cm) | (原箱12包 x 60片)">
              <div class="item-content">
                <h6 class="item-title">
                  <a href="https://yymart.com.hk/products/details/banitore-便利妥-心相印衛生濕紙巾-20-x-30cm-原箱12包-x-60片-1" tabindex="0">
                    Banitore 便利妥 - 心相印衛生濕紙巾 (20 x 30cm) | (原箱12包 x 60片)                  </a>
                </h6>
                <p class="unit-price">單價: HK$30.00</p>
                <div class="meta-row">
                  <div class="quantity-control" role="group" aria-label="調整商品數量">
                    <div class="d-flex rounded-4 overflow-hidden qty_box num-block skin-2 product-quantity" style="margin-top:0; display:flex;">
                                              <div class="num-in" style="margin-top:0; display:flex;">
                          <button type="button" class="minus dis quantity__minus text-neutral-600 flex-center hover-bg-main-600 hover-text-white" data-min="1" data-step="1">
                            <i class="ph ph-minus"></i>
                          </button>
                          <input type="number" class="in-num itemQty" data-page="cart" data-id="10" value="2" data-price="30.00" data-step="1" data-min="1" data-max="0">
                          <button type="button" class="plus quantity__plus text-neutral-600 flex-center hover-bg-main-600 hover-text-white" data-max="0" data-step="1">
                            <i class="ph ph-plus"></i>
                          </button>
                        </div>
                                          </div>
                  </div>
                  <div class="item-total-price">
                    <span class="product-line-price text-sm mb-0 fw-semibold" data-value="HK$60.00" style="">HK$90.00</span>
                  </div>
                </div>
              </div>
            </div>
                        <div class="cart-item" data-id="6" data-store="網上商店" data-price="700.00">
              <button class="product-removal remove-btn" title="移除商品" aria-label="移除商品">
                <i class="ph ph-trash" name="remove_inventory" id="remove_inventory" data-id="6" style="font-size:26px"></i>
              </button>
              <img src="https://yymart.com.hk/uploads/media/2025/799x799_product_6.webp" alt="Abena 雅保 - M3 加強日用成人紙尿褲 (中) | (原箱6包 x 15片)">
              <div class="item-content">
                <h6 class="item-title">
                  <a href="https://yymart.com.hk/products/details/abena-雅保-m3-加強日用成人紙尿褲-中-原箱6包-x-15片" tabindex="0">
                    Abena 雅保 - M3 加強日用成人紙尿褲 (中) | (原箱6包 x 15片)                  </a>
                </h6>
                <p class="unit-price">單價: HK$700.00</p>
                <div class="meta-row">
                  <div class="quantity-control" role="group" aria-label="調整商品數量">
                    <div class="d-flex rounded-4 overflow-hidden qty_box num-block skin-2 product-quantity" style="margin-top:0; display:flex;">
                                              <div class="num-in" style="margin-top:0; display:flex;">
                          <button type="button" class="minus dis quantity__minus text-neutral-600 flex-center hover-bg-main-600 hover-text-white" data-min="1" data-step="1">
                            <i class="ph ph-minus"></i>
                          </button>
                          <input type="number" class="in-num itemQty" data-page="cart" data-id="6" value="2" data-price="700.00" data-step="1" data-min="1" data-max="0">
                          <button type="button" class="plus quantity__plus text-neutral-600 flex-center hover-bg-main-600 hover-text-white" data-max="0" data-step="1">
                            <i class="ph ph-plus"></i>
                          </button>
                        </div>
                                          </div>
                  </div>
                  <div class="item-total-price">
                    <span class="product-line-price text-sm mb-0 fw-semibold" data-value="HK$1,400.00">HK$1,400.00</span>
                  </div>
                </div>
              </div>
            </div>
                      </div>
        </div>
            </div>

  <aside class="cart-sidebar" aria-label="購物車結算資訊">
    <h6>購物車總額</h6>
    <div class="bg-color-three rounded-8 p-24 mb-32">
      <div class="flex-between">
        <span>產品總額</span>
        <span id="product_total" data-value="HK$1,460.00" class="fw-semibold">HK$91.00</span>
      </div>
      <div class="flex-between mt-24">
        <span>運費</span>
        <span id="shipping-fee" data-value="0.00" class="fw-semibold">HK$0.00</span>
      </div>
    </div>
    <div class="bg-color-three rounded-8 p-24 mt-24 total-price flex-between">
      <span style="font-size:1.2rem; font-weight:700;">共需支付</span>
      <span id="final_total" data-value="HK$1,460.00" style="font-weight:bold; font-size:1.2rem;">HK$91.00</span>
    </div>
        <a href="https://yymart.com.hk/cart/checkout" class="btn-main" disabled="">前往付款</a>
  </aside>

</div>