File manager - Edit - /home/webapp69.cm.in.th/u69319090048/shop69319090048/success.php
Back
<?php // PHP 7.4 compatible Success Page if (session_status() === PHP_SESSION_NONE) { session_start(); } require_once 'analytics.php'; // Calculate sales stats before clearing $items_count = 0; $total_amount = 0.0; if (isset($_SESSION['bag']) && is_array($_SESSION['bag'])) { foreach ($_SESSION['bag'] as $item) { $items_count += isset($item['quantity']) ? $item['quantity'] : 0; $total_amount += (isset($item['single_price']) ? $item['single_price'] : 0.0) * (isset($item['quantity']) ? $item['quantity'] : 0); } } track_checkout_success($items_count, $total_amount); // Clear the shopping bag session once order is placed $_SESSION['bag'] = array(); require_once 'header.php'; ?> <div class="container"> <div class="success-container"> <h1>Your Order Is Complete.</h1> <p>Thank you for your purchase. A confirmation email and tracking details have been sent. This is a simulation checkout and no payment was processed.</p> <a href="index.php" class="btn btn-primary" style="margin-top: 12px; padding: 12px 24px;">Return to Collection</a> </div> </div> <?php require_once 'footer.php'; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings