[카트] 쿠폰가 관련노출 수정
- 쿠폰이 들어있어 고객들은 알수없는 부분때문에 쿠폰가에 대해서 0처리
This commit is contained in:
@@ -90,7 +90,7 @@ const CartSidebar = ({ cartInfo }) => {
|
|||||||
const orderSummary = calculateOrderSummaryFromProductInfo(item);
|
const orderSummary = calculateOrderSummaryFromProductInfo(item);
|
||||||
cache.set(item.prodSno || item.cartId, {
|
cache.set(item.prodSno || item.cartId, {
|
||||||
price: orderSummary.items,
|
price: orderSummary.items,
|
||||||
coupon: orderSummary.couponSavings,
|
coupon: 0,
|
||||||
shipping: orderSummary.shipping
|
shipping: orderSummary.shipping
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,6 @@ const CartSidebar = ({ cartInfo }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const subtotal = Math.max(0, totalItems - totalCoupon + totalShipping);
|
const subtotal = Math.max(0, totalItems - totalCoupon + totalShipping);
|
||||||
|
|
||||||
if (DEBUG_LOG) {
|
if (DEBUG_LOG) {
|
||||||
console.log('[CartSidebar] Final calculation for selected items:', {
|
console.log('[CartSidebar] Final calculation for selected items:', {
|
||||||
totalQuantity,
|
totalQuantity,
|
||||||
@@ -391,7 +390,7 @@ const CartSidebar = ({ cartInfo }) => {
|
|||||||
<div className={css.priceItem}>
|
<div className={css.priceItem}>
|
||||||
<span className={css.label}>Option</span>
|
<span className={css.label}>Option</span>
|
||||||
<span className={css.value}>
|
<span className={css.value}>
|
||||||
{formatPrice(optionTotal)}
|
{formatPrice(optionTotal)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className={css.priceItem}>
|
<div className={css.priceItem}>
|
||||||
|
|||||||
Reference in New Issue
Block a user