Files
Commerce/placeorder.php
“VeLiTi” 6f1cc27ec4 Initial commit
2025-01-30 11:43:37 +01:00

24 lines
625 B
PHP

<?php
// Prevent direct access to file
defined(security_key) or exit;
// Remove all the products in cart, the variable is no longer needed as the order has been processed
if (isset($_SESSION['cart'])) {
unset($_SESSION['cart']);
}
// Remove discount code
if (isset($_SESSION['discount'])) {
unset($_SESSION['discount']);
}
?>
<?=template_header('Place Order')?>
<?php if ($error): ?>
<p class="content-wrapper error"><?=$error?></p>
<?php else: ?>
<div class="placeorder content-wrapper">
<h1><?=$h1_order_succes_message?></h1>
<p><?=$order_succes_message?></p>
</div>
<?php endif; ?>
<?=template_footer()?>