Production version
This commit is contained in:
4
cart.php
4
cart.php
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
// Prevent direct access to file
|
||||
defined(security_key) or exit;
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('display_startup_errors', '1');
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Remove product from cart, check for the URL param "remove", this is the product id, make sure it's a number and check if it's in the cart
|
||||
if (isset($_GET['remove']) && is_numeric($_GET['remove']) && isset($_SESSION['cart']) && isset($_SESSION['cart'][$_GET['remove']])) {
|
||||
// Remove the product from the shopping cart
|
||||
|
||||
Reference in New Issue
Block a user