Exemple #1
0
<?php

include '../model/mCart.php';
include '../model/mCategory.php';
include '../model/mProductLister.php';
if (mCart::is_empty()) {
    $cart_count = 0;
} else {
    $cart_count = mCart::get_cart_products_number();
}
$categories = mCategory::get_categories($_GET['c']);
$products = mProductLister::get_category_list($_GET['c']);
$cat_name = mCategory::get_category($_GET['c']);
$shortcut = mCategory::get_shortcut($_GET['c']);
Exemple #2
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();