[장바구니]
- 회원정보없을시 기록되어있는 데이터가 아닌 0으로 노출되도록 변경. - 장바구니 데이터없을시 노출되는 베스트셀러상품부분 노출수정(스타일변경)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
padding-top: 60px;
|
padding-top: 60px;
|
||||||
}
|
}
|
||||||
.emptyBox {
|
.emptyBox {
|
||||||
width: 1320px;
|
width: 1200px;
|
||||||
height: 288px;
|
height: 288px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -39,5 +39,6 @@
|
|||||||
}
|
}
|
||||||
.bestSeller {
|
.bestSeller {
|
||||||
margin-top: 70px;
|
margin-top: 70px;
|
||||||
width: 1320px;
|
width: 1200px;
|
||||||
|
padding-right:10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -341,24 +341,24 @@ const CartSidebar = ({ cartInfo }) => {
|
|||||||
<div className={css.summarySection}>
|
<div className={css.summarySection}>
|
||||||
<div className={css.header}>
|
<div className={css.header}>
|
||||||
<div className={css.title}>Subtotal</div>
|
<div className={css.title}>Subtotal</div>
|
||||||
<span className={css.itemCount}>{itemCount} Items</span>
|
<span className={css.itemCount}>{userNumber ? itemCount : 0} Items</span>
|
||||||
</div>
|
</div>
|
||||||
<div className={css.borderLine} />
|
<div className={css.borderLine} />
|
||||||
<div className={css.priceList}>
|
<div className={css.priceList}>
|
||||||
<div className={css.priceItem}>
|
<div className={css.priceItem}>
|
||||||
<span className={css.label}>Subtotal</span>
|
<span className={css.label}>Subtotal</span>
|
||||||
<span className={css.value}>{formatPrice(subtotal)}</span>
|
<span className={css.value}>{userNumber ? formatPrice(subtotal) : 0}</span>
|
||||||
</div>
|
</div>
|
||||||
<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)}
|
{userNumber ? formatPrice(optionTotal) : 0}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className={css.priceItem}>
|
<div className={css.priceItem}>
|
||||||
<span className={css.label}>S&H</span>
|
<span className={css.label}>S&H</span>
|
||||||
<span className={css.value}>
|
<span className={css.value}>
|
||||||
{formatPrice(shippingHandling)}
|
{userNumber ? formatPrice(shippingHandling) : 0}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -369,7 +369,7 @@ const CartSidebar = ({ cartInfo }) => {
|
|||||||
<span className={css.totalLabelSub}>(Before Tax)</span>
|
<span className={css.totalLabelSub}>(Before Tax)</span>
|
||||||
</span>
|
</span>
|
||||||
<span className={css.totalValue}>
|
<span className={css.totalValue}>
|
||||||
{formatPrice(orderTotalBeforeTax)}
|
{userNumber ? formatPrice(orderTotalBeforeTax) : 0}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -391,7 +391,7 @@ const CartSidebar = ({ cartInfo }) => {
|
|||||||
className={css.checkoutButton}
|
className={css.checkoutButton}
|
||||||
spotlightId="cart-checkout-button"
|
spotlightId="cart-checkout-button"
|
||||||
onClick={handleCheckoutClick}
|
onClick={handleCheckoutClick}
|
||||||
disabled={itemsToCalculate.length === 0}
|
disabled={itemsToCalculate.length === 0 || !userNumber}
|
||||||
>
|
>
|
||||||
Checkout
|
Checkout
|
||||||
</TButton>
|
</TButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user