getCustomerTier($customer['customer_id']); $tiers = loyalty()->getTiers(); $conversion = loyalty()->getConversionInfo(); $history = loyalty()->getHistory($customer['customer_id'], 20); // Handle redemption if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['redeem_points'])) { $points = intval($_POST['points'] ?? 0); if ($points >= 100) { $result = loyalty()->redeemPoints($customer['customer_id'], $points); if ($result['success']) { setFlash('success', "Successfully redeemed {$points} points for " . formatCurrency($result['credit_value']) . " wallet credit!"); } else { setFlash('error', $result['error']); } } else { setFlash('error', 'Minimum 100 points required for redemption'); } redirect('/account/rewards.php'); } require_once __DIR__ . '/../includes/header.php'; require_once __DIR__ . '/includes/sidebar.php'; ?>

My Rewards

Earn points and unlock exclusive benefits

Available Points
Points Value
x
Earning Rate
Progress to points to go

You've reached the highest tier!

Enjoy all the exclusive benefits of

Loyalty Tiers

$tier): ?>

+ pts
x points
View All Benefits
$tier): ?>

Redeem Points

Convert your points to wallet credit. points = $1

= 100): ?>

You need at least 100 points to redeem. Keep shopping to earn more!

Points History

No points activity yet

Date Activity Points
'fa-plus-circle', 'redeem' => 'fa-gift', 'tier_upgrade' => 'fa-arrow-up', 'birthday_bonus' => 'fa-birthday-cake', 'referral_bonus', 'referral_welcome' => 'fa-user-plus', default => 'fa-circle' }; ?> 0 ? '+' : '' ?>