summaryrefslogtreecommitdiff
path: root/src/lib/cart/components/CartOld.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cart/components/CartOld.jsx')
-rw-r--r--src/lib/cart/components/CartOld.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cart/components/CartOld.jsx b/src/lib/cart/components/CartOld.jsx
index 718541af..358efa49 100644
--- a/src/lib/cart/components/CartOld.jsx
+++ b/src/lib/cart/components/CartOld.jsx
@@ -20,6 +20,7 @@ import whatsappUrl from '@/core/utils/whatsappUrl'
import useAuth from '@/core/hooks/useAuth'
const Cart = () => {
+ const PPN = process.env.NEXT_PUBLIC_PPN
const router = useRouter()
const [products, setProducts] = useState(null)
const auth = useAuth()
@@ -67,7 +68,7 @@ const Cart = () => {
})
if (!product.selected) continue
- let priceBeforeTax = product.price.price / 1.11
+ let priceBeforeTax = product.price.price / PPN
calculateTotalPriceBeforeTax += priceBeforeTax * product.quantity
calculateTotalTaxAmount += (product.price.price - priceBeforeTax) * product.quantity
calculateTotalDiscountAmount +=