Example #1
0
<?php

require_once 'config.php';
$records = Cart::select(Config::sessionId());
$meta = Meta::select('section', 'cart');
include 'view/tpl_top.php';
include 'view/tpl_header.php';
include 'view/tpl_popup_zakaz.php';
include 'view/tpl_nav.php';
?>
<div class="container main-container">
    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-12">
            <?php 
include 'view/tpl_catalog.php';
?>
        </div>
        <div class="clearfix visible-sm"></div>
        <div class="col-lg-9 col-md-9 col-sm-12">
            <div class="col-lg-12 col-sm-12">
                <span class="title text-uppercase cart"><?php 
echo $records != false ? "Корзина товаров" : "Ваша корзина пуста";
?>
</span>
            </div>
            <?php 
if ($records != false) {
    ?>
            <div class="col-lg-12 col-sm-12 hero-feature body-cart">
                <div class="table-responsive">
                    <table class="table table-bordered tbl-cart">