diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-13 17:09:53 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-13 17:09:53 +0700 |
| commit | a88dbd7f7b271e78290506fdc61d68adba5d0019 (patch) | |
| tree | 43f89a761f7b72cc936e45004a4fbda2f445f92c /src/pages/shop | |
| parent | ada443445767679dd2d2b2c889bfac02609778b8 (diff) | |
Fixing
Diffstat (limited to 'src/pages/shop')
| -rw-r--r-- | src/pages/shop/cart.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/shop/cart.js b/src/pages/shop/cart.js index ef62bb23..1178781b 100644 --- a/src/pages/shop/cart.js +++ b/src/pages/shop/cart.js @@ -207,13 +207,13 @@ export default function Cart() { {product.attributes.length > 0 ? ` | ${product.attributes.join(', ')}` : ''} </p> <div className="flex flex-wrap gap-x-1 items-center mb-2 mt-auto"> - <p className="text-caption-2 text-gray_r-12">{currencyFormat(product.price.price_discount)}</p> {product.price.discount_percentage > 0 && ( <> - <span className="badge-red">{product.price.discount_percentage}%</span> <p className="text-caption-2 text-gray_r-11 line-through">{currencyFormat(product.price.price)}</p> + <span className="badge-red">{product.price.discount_percentage}%</span> </> )} + <p className="text-caption-2 text-gray_r-12">{currencyFormat(product.price.price_discount)}</p> </div> <div className="flex items-center"> <p className="mr-auto text-caption-2 text-gray_r-12 font-bold">{currencyFormat(product.quantity * product.price.price_discount)}</p> |
