Добавлен автоматический пересчёт суммы товаров после загрузки из черновика
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user