diff --git a/myproject/orders/templates/orders/order_form.html b/myproject/orders/templates/orders/order_form.html index 0abe7ae..0281567 100644 --- a/myproject/orders/templates/orders/order_form.html +++ b/myproject/orders/templates/orders/order_form.html @@ -2236,6 +2236,11 @@ if (!document.getElementById('notification-styles')) { } console.log(`[Order Items] 🎉 Товар успешно загружен: ${optionText}`); + + // Пересчитываем сумму товаров + if (typeof updateOrderItemsTotal === 'function') { + updateOrderItemsTotal(); + } } else { console.warn(`[Order Items] ⚠️ API вернул пустой массив results`); }