<?php
// Buy Now - Redirect to Product Page with Promo Code
// This file redirects to the main product page with promo code applied

if(isset($_GET['promo_code']) && !empty($_GET['promo_code'])) {
    // Redirect to product page with promo code
    header("Location: product.php?promo_code=" . urlencode($_GET['promo_code']));
    exit();
} else {
    // No promo code, just redirect to product page
    header("Location: product.php");
    exit();
}
?>
