Исправлены расчеты цен в корзине и добавлена логика загрузки единиц для категорий. Обновлены компоненты CartInfo, CartList, CartSummary, VinCategory и VinLeftbar для корректного отображения итоговых цен и улучшения взаимодействия с пользователем.

This commit is contained in:
Bivekich
2025-07-08 13:25:49 +03:00
parent f0e873fdd1
commit 8055886082
7 changed files with 231 additions and 107 deletions

View File

@ -170,7 +170,7 @@ const CartList: React.FC<CartListProps> = ({ isSummaryStep = false }) => {
description={item.description}
delivery={item.deliveryTime || 'Уточняется'}
deliveryDate={item.deliveryDate || ''}
price={formatPrice(item.price, item.currency)}
price={formatPrice(item.price * item.quantity, item.currency)}
pricePerItem={`${formatPrice(item.price, item.currency)}/шт`}
count={item.quantity}
comment={item.comment || ''}