Files
4WDCSA.co.za/view_cart.php
Local Administrator b83134aca3 Initial commit
2025-04-18 10:32:42 +02:00

13 lines
296 B
PHP

<?php
session_start();
// Check if the cart exists in the session
if (isset($_SESSION['cart']) && !empty($_SESSION['cart'])) {
echo '<pre>';
print_r($_SESSION['cart']); // Display cart contents in a readable format
echo '</pre>';
} else {
echo 'Cart is empty.';
}
?>