feat(refill): overhaul subscription model to Smart Course Reservation & 5% Next-Order Loyalty Voucher reward
This commit is contained in:
1 parent
b5650c4cbb
commit
85d5a11a5e
7 files changed
+79
-24
No files matched your search
@@ -413,9 +413,9 @@ export default function CheckoutPage() {
|
||||
<span className="font-vazir text-white">{toPersian(getSubtotal().toLocaleString())} تومان</span>
|
||||
</div>
|
||||
{isSubscribed && (
|
||||
<div className="flex justify-between text-sm font-bold text-green-400">
|
||||
<span>تخفیف اشتراک (۵٪-)</span>
|
||||
<span className="font-vazir text-green-400">{toPersian(getDiscount().toLocaleString())} تومان</span>
|
||||
<div className="flex justify-between text-xs font-bold text-green-400 bg-green-500/10 p-2.5 rounded-xl border border-green-500/20">
|
||||
<span>رزرو هوشمند تمدید (پاداش ۵٪ خرید بعدی):</span>
|
||||
<span className="font-vazir font-black text-green-400">رزرو شد ({toPersian(Math.round(getSubtotal() * 0.05).toLocaleString())} تومان)</span>
|
||||
</div>
|
||||
)}
|
||||
{charityDonation > 0 && (
|
||||
|
||||
@@ -325,9 +325,9 @@ export default function OrderDetailsModal({ isOpen, onClose, order }: OrderDetai
|
||||
<span>{toPersian(itemsSubtotal.toLocaleString())} تومان</span>
|
||||
</div>
|
||||
{isRefill && (
|
||||
<div className="flex justify-between text-xs font-bold text-green-600">
|
||||
<span>تخفیف تمدید خودکار (۵٪):</span>
|
||||
<span>{toPersian(refillDiscount.toLocaleString())}- تومان</span>
|
||||
<div className="flex justify-between text-xs font-bold text-green-600 bg-green-50 p-2 rounded-xl border border-green-100">
|
||||
<span>رزرو هوشمند تمدید (۵٪ پاداش خرید بعدی):</span>
|
||||
<span>فعال ({toPersian(Math.round(itemsSubtotal * 0.05).toLocaleString())} تومان)</span>
|
||||
</div>
|
||||
)}
|
||||
{charityAmount > 0 && (
|
||||
|
||||
Reference in new issue
Block a user