mirror of
https://github.com/myronblair/tomsjavajive
synced 2026-07-27 16:52:36 -05:00
Show wallet/gift card discount line on order confirmation page
Total already reflected the discount correctly, but subtotal + shipping did not reconcile with it visually since the discount was never shown as its own line item - matches the same row already present on checkout.php.
This commit is contained in:
@@ -87,7 +87,14 @@ require_once __DIR__ . '/includes/header.php';
|
||||
<span>Shipping</span>
|
||||
<span><?= $order['shipping_cost'] > 0 ? formatCurrency($order['shipping_cost']) : 'FREE' ?></span>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if (!empty($order['wallet_amount_used']) && (float) $order['wallet_amount_used'] > 0): ?>
|
||||
<div style="display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border);">
|
||||
<span>Wallet / Gift Card</span>
|
||||
<span class="text-success">-<?= formatCurrency($order['wallet_amount_used']) ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div style="display: flex; justify-content: space-between; padding: 0.75rem 0; font-weight: 600; font-size: 1.125rem;">
|
||||
<span>Total</span>
|
||||
<span><?= formatCurrency($order['total']) ?></span>
|
||||
|
||||
Reference in New Issue
Block a user