Exemple #1
0
<?php

include '../model/mCart.php';
include '../model/mCategory.php';
include '../model/mProductLister.php';
if ($_POST['postback'] == 'Continue') {
    header('Location: /customer_datas.php');
    exit;
} elseif ($_POST['postback'] == 'Update') {
    mCart::update_cart($_POST['cart']);
}
$categories = mCategory::get_categories(0);
$cart = mCart::get_cart();