2nd update

This commit is contained in:
“VeLiTi”
2025-05-26 15:07:22 +02:00
parent cd0e04981c
commit 580f835fff
46 changed files with 16006 additions and 952 deletions

View File

@@ -9,16 +9,30 @@ if (isset($_SESSION['cart'])) {
if (isset($_SESSION['discount'])) {
unset($_SESSION['discount']);
}
?>
<?=template_header(($place_order_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; ?>
$view = template_header(($place_order_header ?? 'Place order'),'');
<?=template_footer()?>
if ($error){
$view .= '
<p class="content-wrapper error">'.$error.'</p>';
}
else{
$view .= '
<div class="order-confirmation">
<div class="order-confirmation__container">
<div class="order-confirmation__icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
<polyline points="22 4 12 14.01 9 11.01"></polyline>
</svg>
</div>
<h1 class="order-confirmation__title">'.$h1_order_succes_message.'</h1>
<p class="order-confirmation__message">'.$order_succes_message.'</p>
</div>
</div>
';
}
$view .= template_footer();
echo $view;