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