Работа с корзиной

This commit is contained in:
root 2023-03-05 18:22:21 +03:00
parent 7955a16aac
commit d2b7e2c7ea
30 changed files with 832 additions and 735 deletions

View File

@ -1,5 +1,5 @@
<?php
ini_set( 'display_errors', 0);
//проверяем кто мы
$access = 0;
if ( $_SESSION['dostup'] =='a' ) $access=1;
@ -32,27 +32,12 @@ switch(@$_POST['act']) {
if ( preg_match( '/[.](jpg)|(jpeg)|(JPG)|(JPEG)$/', $_FILES['file']['name'] ) ) {
$src = $_FILES['file']['tmp_name'];
$f1 = \core::genpassword(30);
$target = MYDIR . '/img/tovar/' . $f1 . '.jpg';
$target = 'img/' . $_SERVER['SERVER_NAME'] . ' /tovar/' . $f1 . '.jpg';
copy( $src, $target );
unset($a);
$a['fileName']=$f1;
$a['md5']=md5_file($target);
$a['page_id']=$_SESSION['page_id'];
$a['user_id']=$_SESSION['user_id'];
unset($b);
$b['md5']=$a['md5'];
$massiv=$db->get_massiv('img', $b, '', 1);
if($massiv['page_id']==$_SESSION['page_id'] && $massiv['public']==0){
// снова публикуем
//удаляем дубль файла
}
$db->add('img', $a);
\DB::add("INSERT INTO `tovar_img` (`tovar_id`, `filename`) VALUES (?, ?)", array(
$_SESSION['tovar_id'], $f1
));
}
break;

View File

@ -1,5 +1,9 @@
<?php
ini_set( 'display_errors', 0 );
\DB::set("ALTER TABLE `tovar_category` ADD `hide` int(1) NULL DEFAULT '0'");
//проверяем авторизацию
if ( $_SESSION['dostup'] !== 'a' && $_SESSION['dostup'] !== 'e' ) header( 'Location: /403/' );
@ -13,7 +17,7 @@ $smarty -> assign( 'userInfo', \core::getUserInfo( $_SESSION['user_id'] ) );
06.09.2022
Сессия для загрузки картинок
---------------------------------------------------------------------- */
$_SESSION['page_id'] = $_GET['id'];
$_SESSION['tovar_id'] = $_GET['id'];
/* ----------------------------------------------------------------------
21.08.2022
@ -35,6 +39,7 @@ if ( $_GET['id'] ) {
$smarty -> assign ( 'tovar', $tovar );
$imgs=\DB::getAll("SELECT * FROM `tovar_img` WHERE `tovar_id`=?", $_GET['id']);
$smarty -> assign ( 'imgs', $imgs );
//print_r($imgs);
//$har=\DB::getAll("SELECT * FROM `tovar_img` WHERE `tovar_id`=?", $_GET['id']);
//$smarty -> assign ( 'har', $mod -> getHar( ID ) );
}

View File

@ -1,5 +1,5 @@
<?php
ini_set('display_errors', 1 );
//проверяем кто мы
$access = 0;
if ( $_SESSION['dostup'] =='a' ) $access=1;

View File

@ -4,6 +4,19 @@ ini_set( 'display_errors', 0 );
switch(@$_POST['act']) {
/* ----------------------------------------------------------------------
05.03.2023
Удаляем из корзины
---------------------------------------------------------------------- */
case 'delFromCart':
\DB::set("DELETE FROM `cart` WHERE `id`=? AND `user_id`=?", array($_POST['id'], \core::checkMe()));
echo \core::getCart()['summ'];
break;
/* ----------------------------------------------------------------------
27.02.2023

View File

@ -1,70 +1,108 @@
{include file=$header title="{$page[0].title}" h1="{$page[0].title}" keywords="{$page[0].keywords}" description="{$page[0].description}"}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Главная</a></li>
{section name=customer loop=$breadcrumb}{if ($breadcrumb[customer].parent != 0)}
<li class="breadcrumb-item"><a href="/cat/{$breadcrumb[customer].id}">{$breadcrumb[customer].title}</a></li>
{/if}{/section}
<li class="breadcrumb-item active" aria-current="page">{$page[0].title}</li>
</ol>
</nav>
<!-- ********************* -->
<article class="container mt-2 mb-2">
{if $page[0].user_id==$smarty.session.user_id}
<input type="text" placeholder="Заголовок страницы" class="h1-edit hidden form-control" value="{$page[0].title}" style="margin: 0 auto;" title="Двойной клик - сохранит" required> {/if}
<h1>{$page[0].title}</h1>
{if $page[0].oblozhka_show=='1' && $page[0].oblozhka_big}
<img src="/api/img/gray/gif/gray.gif" data-original="/img/pages/{$page[0].oblozhka_big}.jpg" class="lazy" style="width: 100%;" title="{$page[0].title}" alt="{$page[0].title}"><br><br> {/if} {if ($global_settings.h1_page==1)}
<h1 class="text-center" style="margin-top: -20px;">{$page[0].title}</h1>
{/if} {$page[0].txt}
{include file=$header}
</article>
<!-- ********************* -->
{include file='api/modules/page/page_info.html'}
<section class="container">
<nav aria-label="breadcrumb" style="width: 100%; background-color: lightgray; border-radius: 0px 0px 10px 10px; padding-top: 15px; padding-bottom: 1px;">
<ol class="breadcrumb">
<li class="breadcrumb-item" aria-current="page"><a href="/">Главная</a></li>
<li class="breadcrumb-item active" aria-current="page">Корзина</li>
</ol>
</nav>
<h1>Корзина</h1>
<table class="table">
<tr><td></td><td><b>Наименование</b></td><td><b>Количество</b></td><td><b>Цена</b></td><td></td></tr>
{section name=customer loop=$cart} {if $cart[customer].id}
<tr class="global-cart-str-{$cart[customer].id}"><td>
<a href="/tovar_show/{$cart[customer].tovar_id}"><img src="/img/{$smarty.server.SERVER_NAME}/tovar/{$cart[customer].img}.jpg" width="130" alt=""></a>
</td><td>{$cart[customer].title}</td><td>
<input type="number" class="form-control rounded-0 change-kolvo" data-id="{$cart[customer].id}" value="{$cart[customer].kolvo}" min="1">
</td><td>{$cart[customer].cena}</td><td><a class="fa fa-times fa-delete global-cart-delete" data-id="{$cart[customer].id}"></a></td></tr>
{/if} {/section}
<!-- ********************* -->
{if $page[0].user_id==$smarty.session.user_id}
<div id="drop-area" class="container mt-2">
<form class="my-form">
<p>Загрузите дополнительные изображения</p>
<input type="file" id="fileElem" multiple accept="image/*" onchange="handleFiles(this.files)">
<label class="button" for="fileElem">Выбрать файлы</label>
</form>
<progress id="progress-bar" max=100 value=0></progress>
<div id="gallery"></div>
</div>
<!-- div class="note"><strong>Note: I've Removed the ability to actually upload files (it will error out silently since there is no error handler, so it'll still appear to work) because you guys were constantly filling up my Cloudinary account. Please <a href="https://cloudinary.com/invites/lpov9zyyucivvxsnalc5/j6iiupngdmwwwqspjtml">create your own account</a> and replace the "joezim007" and "ujpu6gyk" bits in the JavaScript with your own account's information.</strong></div -->
{/if}
<!-- ********************* -->
{* внешние ссылки *} {* Яндекс-диск *} {if ($page[0].link_yandex_disk)}
<table style="width: 100%;">
<tr>
<td style="width: 141px;">
<a href="{$page[0].link_yandex_disk}" title="{$page[0].link_yandex_disk_txt}" target="_blank" rel="nofollow"><img src="/api/img/oblaka/yadisk.jpg" width="141" height="141" title="{$page[0].link_yandex_disk_txt}" alt="{$page[0].link_yandex_disk_txt}" /></a>
</td>
<td style="vertical-align: middle;">
<b>
<a title="{$page[0].link_yandex_disk_txt}" href="{$page[0].link_yandex_disk}" target="_blank" rel="nofollow">{$page[0].link_yandex_disk_txt}</a>
</b>
</td>
</tr>
</table>
{/if} {* Свое облако *} {if ($page[0].link_my_disk)}
<table style="width: 100%;">
<tr>
<td style="width: 141px;">
<a href="{$page[0].link_my_disk}" title="{$page[0].link_my_disk_txt}" target="_blank" rel="nofollow"><img src="/api/img/oblaka/cloud141x141.png" width="141" height="141" title="{$page[0].link_my_disk_txt}" alt="{$page[0].link_my_disk_txt}" /></a>
</td>
<td style="vertical-align: middle;">
<b><a title="{$page[0].link_my_disk_txt}" href="{$page[0].link_my_disk}" target="_blank" rel="nofollow">{$page[0].link_my_disk_txt}</a></b>
</td>
</tr>
</table>
{/if} {if $page[0].sbor_deneg==1}
<div class="container">
{$sbor_deneg} {$sbor_deneg_txt}
<h3 class="mb-0 global-cart-summ">{$cart_summ} р.</h3>
<div class="d-lg-flex align-items-center gap-2">
<a href="/tovar_cat/1-0.html" class="btn btn-dark"><i class='bx bx-shopping-bag'></i> Продолжить покупки</a>
<a href="javascript:;" class="btn btn-light ms-auto"><i class='bx bx-x-circle'></i> Очистить</a>
<a href="javascript:;" class="btn btn-white"><i class='bx bx-refresh'></i> Обновить</a>
</div>
{/if} {* ---- Проверяем, нужны ли социальные кнопки 14.11.2020 ---- *} {if ($page[0].show_soc_btn==1)} {include file=$socbtn} {/if} {include file='api/modules/page/comments.html'} {include file=$footer plugins="
<script src='/api/modules/page/mod.js'></script>"}
</section>
<div class="shop-cart">
<div class="row">
<div class="col-12 col-xl-8">
<div class="shop-cart-list mb-3 p-3">
<div class="my-4 border-top"></div>
</div>
</div>
<div class="col-12 col-xl-4">
<div class="checkout-form p-3 bg-light">
<div class="card rounded-0 border bg-transparent shadow-none">
<div class="card-body">
<p class="fs-5">Вы не авторизованы, укажите ИНН вашей организаци</p>
<div class="my-3 border-top"></div>
<div class="mb-3">
<label class="form-label">ИНН:</label>
<input class="form-control" name="inn">
</div>
</div>
<div class="card-body">
<p class="fs-5">{$orginfo}</p>
<div class="my-3 border-top"></div>
<div class="mb-3">
<label class="form-label">Адрес доставки</label>
<select class="form-select rounded-0">
<option selected>United States</option>
<option value="1">Australia</option>
<option value="2">India</option>
<option value="3">Canada</option>
</select>
</div>
</div>
</div>
<div class="card rounded-0 border bg-transparent mb-0 shadow-none">
<div class="card-body">
<div class="my-3 border-top"></div>
<h5 class="mb-0">Итого: <span class="float-end" id="summ">{$summ}</span></h5>
<div class="my-4"></div>
<div class="d-grid"> <a href="javascript:;" class="btn btn-dark btn-ecomm">Оформить заказ</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
{include file=$footer}

View File

@ -1,5 +1,6 @@
<?php
ini_set('display_errors', 0 );
\DB::set("ALTER TABLE `tovar_category` ADD `hide` int(1) NULL DEFAULT '0'");
$smarty -> caching = false;
$smarty -> cache_lifetime = 2592000;// 86400 - сутки, 2592000 - месяц
@ -18,10 +19,10 @@ $page = ( $pieces[1] ) ? $pieces[1] : 0; // текущая страница
$categoryInfo=\DB::getAll("SELECT * FROM `tovar_category` WHERE `id`=? LIMIT 1", $pieces[0]);
$smarty->assign('page_info', $categoryInfo);//получаем инфо о категории
$childrenCategory=\DB::getAll("SELECT `id`, `title` FROM `tovar_category` WHERE `status` = 1 AND `category` = ? ORDER BY `title`", $pieces[0] );
$childrenCategory=\DB::getAll("SELECT `id`, `title`, `hide` FROM `tovar_category` WHERE `status` = 1 AND `category` = ? ORDER BY `title`", $pieces[0] );
//Если нет дочерних категорий, берем текущие....
if (!$childrenCategory){
$childrenCategory=\DB::getAll("SELECT `id`, `title` FROM `tovar_category` WHERE `status` = 1 AND `category` = ? ORDER BY `title`", $categoryInfo[0]['category'] );
$childrenCategory=\DB::getAll("SELECT `id`, `title`, `hide` FROM `tovar_category` WHERE `status` = 1 AND `category` = ? ORDER BY `title`", $categoryInfo[0]['category'] );
}
/* ----------------------------------------------------------------------
@ -55,11 +56,12 @@ $smarty->assign('list', $childrenCategory);//получаем дочерние
/* ----------------------------------------------------------------------
19.09.2022
Узнаем обложку раздела
Узнаем обложку раздела - переделано в слайдер
---------------------------------------------------------------------- */
$mainImg=\DB::getValue("SELECT `filename` FROM `tovar_category_img` WHERE `tovar_category_id`=?", $pieces[0]);
$mainImg=\DB::getAll("SELECT `filename`, `id` FROM `tovar_category_img` WHERE `tovar_category_id`=?", $pieces[0]);
$smarty->assign('oblozhka', $mainImg);
//print_r($mainImg);
/* ----------------------------------------------------------------------
02.01.2023

View File

@ -6,7 +6,7 @@
<button class="btn btn-primary" type="submit" style="padding: 10px;">Добавить</button>
<div class="alert alert-primary hidden" role="alert" id="comment-result">
Коментарий отправлен и будет опубликован после модерации
</div>
</div>
</form>
@ -21,7 +21,7 @@
</td>
<td>{$comments[customer].txt}</td>
</tr>
</table>
{/if} {/section}
</div>
{/if} {/section}
</table>

View File

@ -2,9 +2,20 @@
ini_set( 'display_errors', 0 );
@mkdir( 'img/' . $_SERVER['SERVER_NAME'] . '/cert', 0700 );
@mkdir( 'img/' . $_SERVER['SERVER_NAME'] . '/tovar/square', 0700 );
$smarty -> caching = false;
if (!$_SESSION['user_id'])$smarty -> caching = false;
$smarty -> cache_lifetime = 86400;
/* ----------------------------------------------------------------------
01.03.2023
Получаем историю просмотров
---------------------------------------------------------------------- */
$tovarHistory=\DB::getAll( "SELECT `id`, `title`, `akccena` FROM `tovar` WHERE `id` IN ( SELECT `tovar_id` FROM `tovar_history` WHERE `session_id`=? ORDER BY RAND()) AND `status`=1 LIMIT 20", \core::checkMe() );
for ( $i=0; $i < count( $tovarHistory ); $i++ ){
$tovarHistory[$i]['cena'] = \DB::getValue ( "SELECT `cena` FROM `tovar_price_history` WHERE `status`=1 AND `tovar_id`=? ORDER BY `t` DESC", $tovarHistory[$i]['id'] );
$tovarHistory[$i]['img'] = \DB::getValue ( "SELECT `filename` FROM `tovar_img` WHERE `tovar_id`=? LIMIT 1", $tovarHistory[$i]['id']);
}
$smarty -> assign( 'tovarHistory', $tovarHistory );
/* ----------------------------------------------------------------------
28.02.2023
Получаем коментарии
@ -23,6 +34,31 @@ $smarty -> assign( 'inc_comments', 'api/modules/tovar_show/comments.html' );
$page = \DB::getAll( "SELECT * FROM `tovar` WHERE `id`=? LIMIT 1", $_GET['id'] );
$page[0]['date'] = date( 'd.m.Y', @$page[0]['t'] );
/* ----------------------------------------------------------------------
03.03.2023
Смотрим есть ли цена из таблицы товаров в регистре цен, если нет -
переносим данные туда и убираем из товара
---------------------------------------------------------------------- */
$tmpCena=\DB::getValue("SELECT `cena` FROM `tovar_price_history` WHERE `tovar_id`=? AND `status`=1 ORDER BY `t` DESC LIMIT 1", $_GET['id']);
if ($page[0]['cena']!=$tmpCena && $page[0]['cena']){
//Создаем документ
$jsonDoc[0]['tovar_id']=$_GET['id'];
$jsonDoc[0]['cena']=$page[0]['cena'];
$docID=\DB::add("INSERT INTO `docs` (`t`, `tip`, `json`, `status`, `comment`) VALUES(?, 'pereocenka', ?, 1, ?)", array( time(), \json::to_j($jsonDoc), 'Документ создан из публичной карточки товара' ));
\DB::add("INSERT INTO `tovar_price_history` (`status`, `tovar_id`, `cena`, `docs_id`, `t`) VALUES (1, ?, ?, ?, ?)", array( $_GET['id'], $page[0]['cena'], $docID, time() ));
\DB::set("UPDATE `tovar` SET `cena`=NULL WHERE `id`=?", $_GET['id']);
}
/* ----------------------------------------------------------------------
03.01.2023
Хлебные крошки
@ -38,11 +74,6 @@ $smarty->assign('Breadcrumb', \core::getBreadcrumb( 'tovar_category', $page[0]['
$smarty->assign('catImg', \DB::getValue( "SELECT `filename` FROM `tovar_category_img` WHERE `tovar_category_id`=?", $page[0]['category'] ) );
//if ( strlen( $page[0]['txt'] ) <5 ) exec ( "php /home/cloud/core/parcer/getopis.php " . $page[0]['artikul'] );
/* ----------------------------------------------------------------------
17.12.2022
Получаем данные о последней цене на товар

View File

@ -0,0 +1 @@
185.138.129.226;1677649270;Firefox 10+;Windows;https://tk-ligat.ru/tovar_cat/162;
1 185.138.129.226 1677649270 Firefox 10+ Windows https://tk-ligat.ru/tovar_cat/162

View File

@ -0,0 +1,4 @@
82.195.16.173;1677747902;Chrome 10+;Windows;https://tk-ligat.ru/tovar_cat/0-1.html;
82.195.16.173;1677747925;Chrome 10+;Windows;https://tk-ligat.ru/new_find/;
83.220.239.231;1677751096;Chrome 10+;Windows;https://tk-ligat.ru/;
83.220.239.231;1677751131;Chrome 10+;Windows;https://tk-ligat.ru/tovar_cat/67-1.html;
1 82.195.16.173 1677747902 Chrome 10+ Windows https://tk-ligat.ru/tovar_cat/0-1.html
2 82.195.16.173 1677747925 Chrome 10+ Windows https://tk-ligat.ru/new_find/
3 83.220.239.231 1677751096 Chrome 10+ Windows https://tk-ligat.ru/
4 83.220.239.231 1677751131 Chrome 10+ Windows https://tk-ligat.ru/tovar_cat/67-1.html

View File

@ -0,0 +1,2 @@
80.80.108.36;1677839772;Chrome 10+;Windows;http://webspros.ru/chat.php?invite=pc&member=tk-ligat.ru&pg=21&check=ok;
80.80.108.36;1677839831;Chrome 10+;Windows;http://webspros.ru/chat.php?invite=pc&member=tk-ligat.ru&pg=21&check=ok;
1 80.80.108.36 1677839772 Chrome 10+ Windows http://webspros.ru/chat.php?invite=pc&member=tk-ligat.ru&pg=21&check=ok
2 80.80.108.36 1677839831 Chrome 10+ Windows http://webspros.ru/chat.php?invite=pc&member=tk-ligat.ru&pg=21&check=ok

View File

@ -0,0 +1 @@
94.140.136.191;1677903610;Chrome 10+;Windows;https://tk-ligat.ru/grekov-vagonka-kassa2.zip;
1 94.140.136.191 1677903610 Chrome 10+ Windows https://tk-ligat.ru/grekov-vagonka-kassa2.zip

View File

@ -0,0 +1 @@
185.149.41.41;1677987389;Firefox 10+;Windows;https://tk-ligat.ru/;
1 185.149.41.41 1677987389 Firefox 10+ Windows https://tk-ligat.ru/

View File

@ -23,3 +23,5 @@
46.165.16.184;1677600162;Firefox 10+;Linux;https://tk-ligat.ru/tovar_show/32455;
46.165.16.184;1677600985;Firefox 10+;Linux;https://tk-ligat.ru/tovar_show/32455;
46.165.16.184;1677601074;Firefox 10+;Linux;https://tk-ligat.ru/tovar_show/32455;
46.165.16.184;1677603078;Chrome 10+;Linux;https://tk-ligat.ru/tovar_cat/0-1.html;
46.165.16.184;1677609837;Chrome 10+;Linux;https://tk-ligat.ru/tovar_cat/0-1.html;

1 46.165.16.184 1677553482 Chrome 10+ Linux https://tk-ligat.ru/tovar_cat/0-1.html
23 46.165.16.184 1677600162 Firefox 10+ Linux https://tk-ligat.ru/tovar_show/32455
24 46.165.16.184 1677600985 Firefox 10+ Linux https://tk-ligat.ru/tovar_show/32455
25 46.165.16.184 1677601074 Firefox 10+ Linux https://tk-ligat.ru/tovar_show/32455
26 46.165.16.184 1677603078 Chrome 10+ Linux https://tk-ligat.ru/tovar_cat/0-1.html
27 46.165.16.184 1677609837 Chrome 10+ Linux https://tk-ligat.ru/tovar_cat/0-1.html

View File

@ -1 +1 @@
1677161271
1677839773
1 1677161271 1677839773

View File

@ -27,6 +27,7 @@
1671051600;45;3;2;
1660597200;14;2;2;
1671915600;176;3;4;
1677445200;7;3;1;
1674680400;11;5;3;
1657314000;3;2;2;
1671742800;2;1;1;
@ -56,6 +57,7 @@
1673902800;11;4;4;
1657746000;2;2;2;
1671829200;45;4;3;
1677704400;4;2;1;
1665954000;2;1;1;
1674248400;15;6;3;
1660510800;15;6;4;
@ -87,10 +89,12 @@
1661547600;2;2;2;
1656795600;56;1;1;
1659560400;1;1;1;
1677186000;8;1;1;
1672002000;120;2;5;
1665176400;6;1;1;
1662152400;2;2;2;
1671829200;9;4;3;
1677358800;7;1;2;
1674075600;46;5;3;
1661893200;1;1;1;
1663189200;2;2;2;
@ -132,6 +136,7 @@
1661461200;2;2;2;
1657054800;7;4;3;
1665262800;9;1;1;
1677531600;27;3;4;
1657573200;1;1;1;
1659906000;1;1;1;
1673038800;61;1;5;
@ -158,6 +163,7 @@
1675458000;246;7;7;
1661288400;5;3;2;
1674853200;4;1;1;
1677618000;1;1;1;
1661720400;2;1;1;
1675285200;58;3;4;
1659819600;3;3;2;
@ -172,7 +178,7 @@
1672779600;450;6;6;
1676581200;7;1;1;
1664053200;2;2;1;
1677099600;1;1;1;
1677099600;9;2;1;
1676754000;50;5;3;
1665090000;24;3;3;
1657659600;5;5;4;
@ -180,6 +186,7 @@
1662757200;1;1;1;
1665003600;1;1;1;
1660856400;6;6;3;
1677272400;3;1;1;
1675544400;132;5;3;
1658437200;5;4;1;
1656709200;21;3;3;

1 1675371600 11 2 3
27 1671051600 45 3 2
28 1660597200 14 2 2
29 1671915600 176 3 4
30 1677445200 7 3 1
31 1674680400 11 5 3
32 1657314000 3 2 2
33 1671742800 2 1 1
57 1673902800 11 4 4
58 1657746000 2 2 2
59 1671829200 45 4 3
60 1677704400 4 2 1
61 1665954000 2 1 1
62 1674248400 15 6 3
63 1660510800 15 6 4
89 1661547600 2 2 2
90 1656795600 56 1 1
91 1659560400 1 1 1
92 1677186000 8 1 1
93 1672002000 120 2 5
94 1665176400 6 1 1
95 1662152400 2 2 2
96 1671829200 9 4 3
97 1677358800 7 1 2
98 1674075600 46 5 3
99 1661893200 1 1 1
100 1663189200 2 2 2
136 1661461200 2 2 2
137 1657054800 7 4 3
138 1665262800 9 1 1
139 1677531600 27 3 4
140 1657573200 1 1 1
141 1659906000 1 1 1
142 1673038800 61 1 5
163 1675458000 246 7 7
164 1661288400 5 3 2
165 1674853200 4 1 1
166 1677618000 1 1 1
167 1661720400 2 1 1
168 1675285200 58 3 4
169 1659819600 3 3 2
178 1672779600 450 6 6
179 1676581200 7 1 1
180 1664053200 2 2 1
181 1677099600 1 9 1 2 1
182 1676754000 50 5 3
183 1665090000 24 3 3
184 1657659600 5 5 4
186 1662757200 1 1 1
187 1665003600 1 1 1
188 1660856400 6 6 3
189 1677272400 3 1 1
190 1675544400 132 5 3
191 1658437200 5 4 1
192 1656709200 21 3 3

View File

@ -38,7 +38,9 @@ if ( !@$_SESSION['user_id'] ) \core::loginCookies();
Берем данные корзины
---------------------------------------------------------------------- */
$cart = \core::getCart();
$smarty -> assign( 'cart', $cart );
//print_r($cart);
$smarty -> assign( 'cart', $cart['cart'] );
$smarty -> assign( 'cart_summ', $cart['summ'] );
/* ----------------------------------------------------------------------
25.22.2023

View File

@ -83,7 +83,7 @@
<li>
<a href="/cart/" class="offcanvas-toggle" id="cart_icon">
<i class="icon-shopping-cart"></i>
<span class="wishlist-item-count pos-absolute">3</span>
<span class="wishlist-item-count pos-absolute">{$kolvo_tovar_in_cart}</span>
</a>
</li>
</ul>

View File

@ -0,0 +1,104 @@
{include file=$header}
<div class="page-breadcrumb">
<div class="container">
<div class="row">
<div class="col-12">
<ul class="page-breadcrumb__menu">
<li class="page-breadcrumb__nav"><a href="#">Старт</a></li>
<li class="page-breadcrumb__nav active">Корзина</li>
</ul>
</div>
</div>
</div>
</div>
<div class="shop-cart">
<div class="row">
<div class="col-12 col-xl-8">
<div class="shop-cart-list mb-3 p-3">
{section name=customer loop=$itogcart} {if $itogcart[customer].id}
<div class="row align-items-center g-3" id="div-{$itogcart[customer].id}">
<div class="col-12 col-lg-6">
<div class="d-lg-flex align-items-center gap-2">
<div class="cart-img text-center text-lg-start">
<a href="/tovar_show/{$itogcart[customer].tovar_id}"><img src="/img/{$smarty.server.SERVER_NAME}/tovar/{$itogcart[customer].img}.jpg" width="130" alt=""></a>
</div>
<div class="cart-detail text-center text-lg-start">
<h6 class="mb-2"><a href="/tovar_show/{$itogcart[customer].tovar_id}">{$itogcart[customer].title}</a></h6>
<h5 class="mb-0">{$itogcart[customer].cena} р.</h5>
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="cart-action text-center">
<input type="number" class="form-control rounded-0 change-kolvo" data-id="{$itogcart[customer].id}" value="{$itogcart[customer].kolvo}" min="1">
</div>
</div>
<div class="col-12 col-lg-3">
<div class="text-center">
<div class="d-flex gap-2 justify-content-center justify-content-lg-end"> <a href="#" class="btn btn-dark rounded-0 btn-ecomm a-del-from-cart" data-id="{$itogcart[customer].id}"><i class='bx bx-x-circle'></i> Удалить</a>
<a href="javascript:;" class="btn btn-light rounded-0 btn-ecomm"><i class='bx bx-heart me-0'></i></a>
</div>
</div>
</div>
</div>
<div class="my-4 border-top"></div>
{/if} {/section}
<div class="my-4 border-top"></div>
<div class="d-lg-flex align-items-center gap-2"> <a href="javascript:;" class="btn btn-dark btn-ecomm"><i class='bx bx-shopping-bag'></i> Продолжить покупки</a>
<a href="javascript:;" class="btn btn-light btn-ecomm ms-auto"><i class='bx bx-x-circle'></i> Очистить</a>
<a href="javascript:;" class="btn btn-white btn-ecomm"><i class='bx bx-refresh'></i> Обновить</a>
</div>
</div>
</div>
<div class="col-12 col-xl-4">
<div class="checkout-form p-3 bg-light">
<div class="card rounded-0 border bg-transparent shadow-none">
<div class="card-body">
<p class="fs-5">Вы не авторизованы, укажите ИНН вашей организаци</p>
<div class="my-3 border-top"></div>
<div class="mb-3">
<label class="form-label">ИНН:</label>
<input class="form-control" name="inn">
</div>
</div>
<div class="card-body">
<p class="fs-5">{$orginfo}</p>
<div class="my-3 border-top"></div>
<div class="mb-3">
<label class="form-label">Адрес доставки</label>
<select class="form-select rounded-0">
<option selected>United States</option>
<option value="1">Australia</option>
<option value="2">India</option>
<option value="3">Canada</option>
</select>
</div>
</div>
</div>
<div class="card rounded-0 border bg-transparent mb-0 shadow-none">
<div class="card-body">
<div class="my-3 border-top"></div>
<h5 class="mb-0">Итого: <span class="float-end" id="summ">{$summ}</span></h5>
<div class="my-4"></div>
<div class="d-grid"> <a href="javascript:;" class="btn btn-dark btn-ecomm">Оформить заказ</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
{include file=$footer}

BIN
skin/virtual-nt.ru/img/1.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
skin/virtual-nt.ru/img/nofoto.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
skin/virtual-nt.ru/img/nout.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
skin/virtual-nt.ru/img/pcm.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -7,22 +7,22 @@
<div class="">
<div class=" collapsed-block ">
<div class="module clearfix">
<h3 class="modtitle">Contact Us </h3>
<h3 class="modtitle">Мы тут</h3>
<div class="modcontent">
<ul class="contact-address">
<li><p><span class="fa fa-map-marker"></span><span>Address : </span> My Company, 42 avenue des Champs Elysées</p></li>
<li><span class="fa fa-envelope-o"></span><span>Email : </span> <a href="#"> sales@yourcompany.com</a></li>
<li><p><span class="fa fa-phone"> </span><span>Phone :</span> 0123456789</p> </li>
<li><p><span class="fa fa-map-marker"></span><span>Адрес: </span>Свердловская область, <br>г. Нижний Тагил, пр.Мира 24</p></li>
<li><span class="fa fa-envelope-o"></span><span>Мыло : </span> <a href="mailto:virtual@tagnet.ru"> virtual@tagnet.ru</a></li>
<li><p><span class="fa fa-phone"> </span><span>Телефон :</span> +7 902 879 44 73</p> </li>
</ul>
</div>
<div class="share-icon">
<!-- div class="share-icon">
<ul>
<li class="facebook"><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li class="twitter"><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li class="google"><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
<li class="skype"><a href="#"><i class="fa fa-skype" aria-hidden="true"></i></a></li>
</ul>
</div>
</div -->
</div>
</div>
<div class=" box-information">
@ -74,7 +74,7 @@
</div>
</section>
<!-- /Footer Top Container -->
<div class="footer-mid">
<!-- div class="footer-mid">
<div class=" help">
<div class=" container">
<div class=" row">
@ -93,8 +93,8 @@
</div>
</div>
</div>
</div>
<div class="footer-bottom-block ">
</div -->
<!-- div class="footer-bottom-block ">
<div class=" container">
<div class="row">
<div class="footer-bottom-header">
@ -120,7 +120,7 @@
<div class="back-to-top"><i class="fa fa-angle-up"></i><span> Top </span></div>
</div>
</div>
</div>
</div -->
</footer>
<!-- //end Footer Container -->
@ -152,7 +152,7 @@
{$plugins}
<script src="/api/jquery/plugins/lazyload/jquery.lazyload.min1.9.5.js"></script>
<script src="js/js.js"></script>
<script src="/api/modules/{$smarty.const.MOD}/mod.js"></script>
<script src="/api/modules/{$smarty.const.MOD}/mod.js"></script>
</body>
</html>

View File

@ -66,8 +66,22 @@
<div class="tabBlock1" id="TabBlock-1">
<ul class="top-link list-inline">
<li class="wishlist hidden-xs"><a href="#" id="wishlist-total" class="top-link-wishlist" title="Welcome Customer!"><span>Добро пожаловать!</span></a></li>
<li class="signin"><a href="/login/" class="top-link-checkout" title="Sign In"><span>Войти</span></a></li>
{if ($smarty.session.dostup==a)}
<li class="signin"><a href="/admin/" class="top-link-checkout" title="Sign In"><span>Админка</span></a></li>
<li class="signin"><a href="/user/" class="top-link-checkout" title="Sign In"><span>Профиль</span></a></li>
<li class="signin"><a href="/exit/" class="top-link-checkout" title="Sign In"><span>Выход</span></a></li>
{/if}
{if ($smarty.session.dostup==u)}
<li class="signin"><a href="/user/" class="top-link-checkout" title="Sign In"><span>Профиль</span></a></li>
<li class="signin"><a href="/exit/" class="top-link-checkout" title="Sign In"><span>Выход</span></a></li>
{/if}
{if (!$smarty.session.dostup)}
<li class="signin"><a href="/login/" class="top-link-checkout" title="Sign In"><span>Войти</span></a></li>
{/if}
</ul>
</div>
</div>
@ -124,8 +138,8 @@
<div class="shopcart">
<span class="handle pull-left"></span>
<span class="number-shopping-cart">{$kolvo_tovar_in_cart}</span>
<span class="title">My Cart</span>
<p class="text-shopping-cart cart-total-full"> $0.00 </p>
<span class="title">Корзина</span>
<p class="text-shopping-cart cart-total-full global-cart-summ"> {$cart_summ} р. </p>
</div>
</a>
@ -134,34 +148,27 @@
<li>
<table class="table table-striped">
<tbody>
<tr>
{section name=customer loop=$cart}{if $cart[customer].id}
<tr class="global-cart-str-{$cart[customer].id}">
<td class="text-center" style="width:70px">
<a href="product.html"> <img src="img/demo/shop/product/35.jpg" style="width:70px" alt="Filet Mign" title="Filet Mign" class="preview"> </a>
<a href="/tovar_show/{$cart[customer].tovar_id}">
<img src="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$cart[customer].img}.jpg" style="width:70px" alt="{$cart[customer].title}" title="{$cart[customer].title}" class="preview"> </a>
<!--img src="img/demo/shop/product/35.jpg" style="width:70px" alt="Filet Mign" title="Filet Mign" class="preview"> </a -->
</td>
<td class="text-left"> <a class="cart_product_name" href="product.html">Filet Mign</a> </td>
<td class="text-center"> x1 </td>
<td class="text-center"> $1,202.00 </td>
<td class="text-left"> <a class="cart_product_name" href="/tovar_show/{$cart[customer].tovar_id}">{$cart[customer].title|substr:15}</a> </td>
<td class="text-center"> x{$cart[customer].kolvo} </td>
<td class="text-center"> {$cart[customer].cena} р. </td>
<td class="text-right">
<a href="product.html" class="fa fa-edit"></a>
<a href="/tovar_show/{$cart[customer].tovar_id}" class="fa fa-edit"></a>
</td>
<td class="text-right">
<a onclick="cart.remove('2');" class="fa fa-times fa-delete"></a>
</td>
</tr>
<tr>
<td class="text-center" style="width:70px">
<a href="product.html"> <img src="img/demo/shop/product/141.jpg" style="width:70px" alt="Canon EOS 5D" title="Canon EOS 5D" class="preview"> </a>
</td>
<td class="text-left"> <a class="cart_product_name" href="product.html">Canon EOS 5D</a> </td>
<td class="text-center"> x1 </td>
<td class="text-center"> $60.00 </td>
<td class="text-right">
<a href="product.html" class="fa fa-edit"></a>
</td>
<td class="text-right">
<a onclick="cart.remove('1');" class="fa fa-times fa-delete"></a>
<a class="fa fa-times fa-delete global-cart-delete" data-id="{$cart[customer].id}"></a>
</td>
</tr>
{/if}{/section}
</tbody>
</table>
</li>
@ -169,29 +176,15 @@
<div>
<table class="table table-bordered">
<tbody>
<tr>
<td class="text-left"><strong>Sub-Total</strong>
<td class="text-left"><strong>Всего</strong>
</td>
<td class="text-right">$1,060.00</td>
</tr>
<tr>
<td class="text-left"><strong>Eco Tax (-2.00)</strong>
</td>
<td class="text-right">$2.00</td>
</tr>
<tr>
<td class="text-left"><strong>VAT (20%)</strong>
</td>
<td class="text-right">$200.00</td>
</tr>
<tr>
<td class="text-left"><strong>Total</strong>
</td>
<td class="text-right">$1,262.00</td>
<td class="text-right global-cart-summ">{$cart_summ} р.</td>
</tr>
</tbody>
</table>
<p class="text-right"> <a class="btn view-cart" href="cart.html"><i class="fa fa-shopping-cart"></i>View Cart</a>&nbsp;&nbsp;&nbsp; <a class="btn btn-mega checkout-cart" href="checkout.html"><i class="fa fa-share"></i>Checkout</a> </p>
<p class="text-right"> <a class="btn view-cart" href="/cart/"><i class="fa fa-shopping-cart"></i>Оформить заказ</a> </p>
</div>
</li>
</ul>
@ -229,7 +222,17 @@
<div class="megamenu-pattern">
<div class="container">
<ul class="megamenu " data-transition="slide" data-animationtime="250">
<li class="home hover">
<li class="">
<p class="close-menu"></p>
<a href="/" class="clearfix menu1">
<strong>Старт</strong>
<span class="label"></span>
</a>
</li>
<!-- li class="home hover">
<p class="close-menu"></p>
<a href="#" class="menu1">Home </a>
<div class="sub-menu" style="width: 100%; display: none;">
@ -345,8 +348,8 @@
</div>
</div>
</div>
</li>
<li class="with-sub-menu hover">
</li -->
<!-- li class="with-sub-menu hover">
<p class="close-menu"></p>
<a href="#" class="clearfix menu1">
<strong>Features</strong>
@ -413,11 +416,11 @@
</div>
</div>
</div>
</li>
</li -->
<li class="with-sub-menu hover">
<p class="close-menu"></p>
<a href="#" class="clearfix menu1">
<strong>Pages</strong>
<strong>Информация</strong>
</a>
<div class="sub-menu" style="width: 40%; right: auto; display: none;">
@ -447,7 +450,7 @@
<li class="with-sub-menu hover">
<p class="close-menu"></p>
<a href="#" class="clearfix menu1">
<strong>Categories</strong>
<strong>Каталог</strong>
<span class="label"></span>
</a>
@ -457,13 +460,13 @@
<div class="col-sm-12">
<div class="row">
<div class="col-md-3 img img1">
<a href="#"><img src="img/demo/cms/img1.jpg" alt="banner1"></a>
<a href="/tovar_cat/295-0.html"><img src="img/nout.jpg" alt="banner1"></a>
</div>
<div class="col-md-3 img img2">
<a href="#"><img src="img/demo/cms/img2.jpg" alt="banner2"></a>
<a href="/tovar_cat/294-0.html"><img src="img/pcm.jpg" alt="banner2"></a>
</div>
<div class="col-md-3 img img3">
<a href="#"><img src="img/demo/cms/img3.jpg" alt="banner3"></a>
<a href="#"><img src="img/1.jpg" alt="banner3"></a>
</div>
<div class="col-md-3 img img4">
<a href="#"><img src="img/demo/cms/img4.jpg" alt="banner4"></a>
@ -473,44 +476,41 @@
</div>
<div class="row">
<div class="col-md-3">
<a href="#" class="title-submenu">Automotive</a>
<a href="/tovar_cat/295-0.html" class="title-submenu">Ноутбуки</a>
<div class="row">
<div class="col-md-12 hover-menu">
<div class="menu">
<ul>
<li><a href="#" class="main-menu">Car Alarms and Security</a></li>
<li><a href="#" class="main-menu">Car Audio &amp; Speakers</a></li>
<li><a href="#" class="main-menu">Gadgets &amp; Auto Parts</a></li>
<li><a href="#" class="main-menu">More Car Accessories</a></li>
<li><a href="#" class="main-menu">Зарядники и акумуляторы</a></li>
<li><a href="#" class="main-menu">Сумки</a></li>
<!-- li><a href="#" class="main-menu">More Car Accessories</a></li-->
</ul>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<a href="#" class="title-submenu">Electronics</a>
<a href="/tovar_cat/294-0.html" class="title-submenu">Компьютеры</a>
<div class="row">
<div class="col-md-12 hover-menu">
<div class="menu">
<ul>
<li><a href="#" class="main-menu">Battereries &amp; Chargers</a></li>
<li><a href="#" class="main-menu">Headphones, Headsets</a></li>
<li><a href="#" class="main-menu">Home Audio</a></li>
<li><a href="#" class="main-menu">Mp3 Players &amp; Accessories</a></li>
<li><a href="#" class="main-menu">Комплектуха</a></li>
<li><a href="#" class="main-menu">Перефирия</a></li>
<!-- li><a href="#" class="main-menu">Mp3 Players &amp; Accessories</a></li-->
</ul>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<a href="#" class="title-submenu">Jewelry &amp; Watches</a>
<a href="#" class="title-submenu">Принтеры</a>
<div class="row">
<div class="col-md-12 hover-menu">
<div class="menu">
<ul>
<li><a href="#" class="main-menu">Earings</a></li>
<li><a href="#" class="main-menu">Wedding Rings</a></li>
<li><a href="#" class="main-menu">Men Watches</a></li>
<li><a href="#" class="main-menu">Тонер к ним</a></li>
<li><a href="#" class="main-menu">Картриджи</a></li>
</ul>
</div>
</div>
@ -536,7 +536,7 @@
</div>
</li>
<li class="with-sub-menu hover">
<!-- li class="with-sub-menu hover">
<p class="close-menu"></p>
<a href="#" class="clearfix menu1">
<strong>Accessories</strong>
@ -663,15 +663,30 @@
</div>
</div>
</div>
</li>
</li -->
<li class="">
<p class="close-menu"></p>
<a href="blog-page.html" class="clearfix menu1">
<strong>Blog</strong>
<strong>Живой журнал</strong>
<span class="label"></span>
</a>
</li>
<li class="">
<p class="close-menu"></p>
<a href="blog-page.html" class="clearfix menu1">
<strong>Есть работа</strong>
<span class="label"></span>
</a>
</li>
<li class="">
<p class="close-menu"></p>
<a href="blog-page.html" class="clearfix menu1">
<strong>Есть халтура</strong>
<span class="label"></span>
</a>
</li>
</ul>
@ -693,13 +708,20 @@
<!-- //end Navbar switcher -->
</header>
<!-- //Header Container -->
{if ($smarty.get.mod!='tovar_show' && $smarty.get.mod!='login' && $smarty.get.mod!='page') }
{* if ($smarty.get.mod!='tovar_show' && $smarty.get.mod!='login' && $smarty.get.mod!='page') }
<!-- Block Spotlight1 -->
<section class="so-spotlight1 ">
<div class="container">
<div class="row" style="border: 0px solid green;">
<div class="sidebar-menu col-md-3 col-sm-12 hidden-xs " style="border: 0px solid green;">
<!-- div class="sidebar-menu col-md-3 col-sm-12 hidden-xs " style="border: 0px solid green;">
<div class="responsive so-megamenu ">
<div class="so-vertical-menu no-gutter compact-hidden">
<nav class="navbar-default">
@ -748,7 +770,7 @@
</div>
</div>
</div>
</div -->
@ -778,4 +800,4 @@
{/if}
</div>
</section>
{/if}
{/if *}

View File

@ -1,6 +1,121 @@
{include file=$header}
<section class="so-spotlight1 ">
<div class="container">
<div class="row" style="border: 0px solid green;">
<div class="sidebar-menu col-md-3 col-sm-12 hidden-xs " style="border: 0px solid green;">
<div class="responsive so-megamenu ">
<div class="so-vertical-menu no-gutter compact-hidden">
<nav class="navbar-default">
<div class="container-megamenu vertical open">
<div id="menuHeading-1">
<div class="megamenuToogle-wrapper">
<div class="megamenuToogle-pattern">
<div class="container">
<div>
<span></span>
<span></span>
<span></span>
</div>
Популярные разделы
</div>
</div>
</div>
</div>
<div class="navbar-header">
<button id="show-verticalmenu" data-toggle="collapse"
class="navbar-toggle fa fa-list-alt">
</button>
</div>
<div class="vertical-wrapper " style="display: block;">
<span id="remove-verticalmenu" class="fa fa-times"></span>
<div class="megamenu-pattern">
<div class="container">
<ul class="megamenu">
<li class="item-vertical">
<p class="close-menu"></p>
<a href="/tovar_cat/262-0.html"
class="clearfix">
<span>Все для сети</span>
</a>
</li>
<li class="item-vertical">
<p class="close-menu"></p>
<a href="/tovar_cat/{$menu_internet_magazin[customer].id}-0.html"
class="clearfix">
<span
title="То что всего когда-нибудь пригодится, а как пригодится - не найдешь">Провода</span>
</a>
</li>
<li class="item-vertical">
<p class="close-menu"></p>
<a href="/tovar_cat/{$menu_internet_magazin[customer].id}-0.html"
class="clearfix">
<span>Всякие мелочи</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
</div>
</div>
</div>
<div id="yt_header_right" class="col-sm-12 col-md-9 col-lg-9 ">
<div class="slider-container ">
<div class="owl-carousel owl-slider-1 owl" data-dots="yes" data-nav="yes" data-loop="yes"
data-items_xs="1" data-items_sm="1" data-items_md="1" data-margin="0">
<div class="img-slider">
<a href="#"><img src="img/demo/slider/slider-1.jpg" alt=""></a>
</div>
<div class="img-slider">
<a href="#"><img src="img/demo/slider/slider-2.jpg" alt=""></a>
</div>
<div class="img-slider">
<a href="#"><img src="img/demo/slider/slider-3.jpg" alt=""></a>
</div>
</div>
</div>
</div>
</div>
</section>
@ -11,8 +126,8 @@
<div class="main-container container" style="border: 0px solid green;">
<div class="row">
<div class="col-xs-3 col-sm-3"></div>
<div id="content" class="col-xs-9 col-sm-9">
<div id="content" class="col-xs-12 col-sm-12">
<div class="module tab-slider titleLine">
<h3 class="modtitle">Распродажа недели!</h3>
@ -238,8 +353,8 @@
</div>
</div>
<div class="module col-sm-3 hidden-xs"></div>
<div class="module col-sm-9 hidden-xs">
<div class="module col-sm-12 hidden-xs">
<div class="modcontent clearfix">
<div class="banner-wraps ">
<div class="m-banner ">
@ -1767,7 +1882,7 @@
</div>
</section>
<!-- //Block Spotlight3 -->
<script type="text/javascript"><!-
<script type="text/javascript">< !-
// var $typeheader = 'header-home1';
//-->
</script>

View File

@ -1,54 +1,149 @@
{include file=$header title=$page_info[0].title description=$page_info[0].title keywords=$page_info[0].title}
<section class="container">
<nav aria-label="breadcrumb" style="width: 100%; background-color: lightgray; border-radius: 0px 0px 10px 10px; padding-top: 15px; padding-bottom: 1px;;">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Главная</a></li>
<li class="breadcrumb-item"><a href="/tovar_cat/1-0.html">Каталог</a></li>
{section name=customer loop=$Breadcrumb}{if ($Breadcrumb[customer].id && $Breadcrumb[customer].id!=$smarty.get.id)}
<li class="breadcrumb-item"><a href="/tovar_cat/{$Breadcrumb[customer].id}-0.html">{$Breadcrumb[customer].title}</a></li>
{/if}{/section}
<li class="breadcrumb-item active" aria-current="page"><b>{$page_info[0].title|substr:70}</b></li>
</ol>
</nav>
<h1>{$page_info[0].title}</h1>
</section>
<section class="so-spotlight1 ">
<div class="container">
<div class="row" style="border: 0px solid green;">
<div class="sidebar-menu col-md-3 col-sm-12 hidden-xs " style="border: 0px solid green;">
<div class="responsive so-megamenu ">
<div class="so-vertical-menu no-gutter compact-hidden">
<nav class="navbar-default">
<div class="container-megamenu vertical open">
<div id="menuHeading-1">
<div class="megamenuToogle-wrapper">
<div class="megamenuToogle-pattern">
<div class="container">
<div>
<span></span>
<span></span>
<span></span>
</div>
Популярные разделы
</div>
</div>
</div>
</div>
<div class="navbar-header">
<button id="show-verticalmenu" data-toggle="collapse"
class="navbar-toggle fa fa-list-alt">
</button>
</div>
<div class="vertical-wrapper " style="display: block;">
<span id="remove-verticalmenu" class="fa fa-times"></span>
<div class="megamenu-pattern">
<div class="container">
<ul class="megamenu">
{section name=customer loop=$list}{if $list[customer].id}
<li class="item-vertical" {if ($list[customer].hide==1)}style="display: none;"{/if}>
<p class="close-menu"></p>
<a href="/tovar_cat/{$list[customer].id}-0.html" class="clearfix">
<span>{$list[customer].title}</span>
</a>
</li>
{/if}{/section}
<li class="loadmore">
<i class="fa fa-plus-square-o"></i>
<span class="more-view">Еще товары</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
</div>
</div>
</div>
<div id="yt_header_right" class="col-sm-12 col-md-9 col-lg-9 ">
<div class="slider-container ">
<div class="owl-carousel owl-slider-1 owl" data-dots="yes" data-nav="yes" data-loop="yes"
data-items_xs="1" data-items_sm="1" data-items_md="1" data-margin="0">
{section name=customer loop=$oblozhka}{if $oblozhka[customer].id}
<div class="img-slider">
<a href="#"><img src="/img/{$smarty.server.SERVER_NAME}/tovar_cat/{$oblozhka[customer].filename}.jpg" alt=""></a>
</div>
{/if}{/section}
</div>
</div>
</div>
</div>
</section>
<div class="main-container container" style="border: 0px solid green;">
<div class="row">
<div class="col-xs-3 col-sm-3"></div>
<div id="content" class="col-xs-9 col-sm-9">
<!-- nav aria-label="breadcrumb" style="width: 100%;">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/" style="font-size: 10pt;">Главная</a></li>
{$breadcrumb}
<li class="breadcrumb-item active" aria-current="page" style="font-size: 10pt;">{$cat_name}</li>
</ol>
</nav -->
<div id="content" class="col-xs-12 col-sm-12">
{* Подкатегории _210_270 *}
<div class="products-category">
<div>
<h3>{$page_info[0].title}</h3>
</div>
<div class="category-derc form-group">
<div class="row">
<div class="col-sm-4"><img src="/img/{$smarty.server.SERVER_NAME}/tovar_cat/{$page_info[0].img}.jpg"
alt="Apple Cinema 30&quot;"></div>
<div class="col-sm-8">
{$page_info[0].txt}
</div>
</div>
</div>
{*
<!-- товар-->
<div class="products-list grid row" style="width: 100%;">
{section name=customer loop=$list}{if $list[customer].id}
<div class="product-layout col-sm-4" style="border: 0px solid green;">
<div class="product-layout col-sm-3" style="border: 0px solid green;">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container1" style="height: 282px;">
<a class="product-img" href="/tovar_cat/{$list[customer].id}-0.html"><img
class="lazy"
data-original="/img/{$smarty.server.SERVER_NAME}/tovar_cat/{$list[customer].img}.jpg"
src="https://tk-ligat.ru/skin/tk-ligat.ru/img/nofoto.jpg" alt="" style="width: 100%;"></a>
src="img/nofoto.jpg" alt="" style="width: 100%;"></a>
</div>
</div>
<div class="right-block">
@ -64,16 +159,16 @@
{/if}{/section}
</div>
*}
<!-- товар-->
<h2>Товары:</h2>
<div class="products-list grid row" style="width: 100%;">
{section name=customer loop=$list2}{if $list2[customer].id}
<div class="product-layout col-sm-4 mb-3" style="margin-bottom: 10px;">
<div class="product-layout col-sm-3 mb-3" style="margin-bottom: 10px;">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container1" style="height: 282px;">
<div class="product-image-container1">
<a class="product-img" href="/tovar_show/{$list2[customer].id}"><img class="lazy"
data-original="/img/{$smarty.server.SERVER_NAME}/tovar/{$list2[customer].img}.jpg"
src="https://tk-ligat.ru/skin/tk-ligat.ru/img/nofoto.jpg" alt=""></a>

View File

@ -1,14 +1,16 @@
{include file=$header title="{$page[0].title}" h1="{$page[0].title}" keywords="{$page[0].keywords}" description="{$page[0].description}"}
{include file=$header title="{$page[0].title}" h1="{$page[0].title}" keywords="{$page[0].keywords}"
description="{$page[0].description}"}
<div class="main-container container">
<ul class="header-main type-1">
<li class="home"><a href="/">Главная<i class="fa fa-angle-right" aria-hidden="true"></i></a></li>
{section name=customer loop=$Breadcrumb}{if ($Breadcrumb[customer].id && $Breadcrumb[customer].id!=$smarty.get.id)}
<li class="home"><a href="/tovar_cat/{$Breadcrumb[customer].id}-0.html">{$Breadcrumb[customer].title} <i class="fa fa-angle-right"
aria-hidden="true"></i></a></li>
{/if}{/section}
<li class="breadcrumb-item active" aria-current="page">{$page[0].title|substr:170}</li>
{section name=customer loop=$Breadcrumb}{if ($Breadcrumb[customer].id &&
$Breadcrumb[customer].id!=$smarty.get.id)}
<li class="home"><a href="/tovar_cat/{$Breadcrumb[customer].id}-0.html">{$Breadcrumb[customer].title} <i
class="fa fa-angle-right" aria-hidden="true"></i></a></li>
{/if}{/section}
<li class="breadcrumb-item active" aria-current="page">{$page[0].title|substr:170}</li>
</ul>
<div class="row">
@ -22,26 +24,27 @@
<div class="large-image ">
<img itemprop="image" class="product-image-zoom"
src="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$imagesTovar[0]['filename']}.jpg"
{* data-zoom-image="/img/{$smarty.server.SERVER_NAME}/tovar/{$imagesTovar[0]['filename']}.jpg" *}
title="{$page[0].title}" alt="{$page[0].title}" style="width: 100%;">
{*
data-zoom-image="/img/{$smarty.server.SERVER_NAME}/tovar/{$imagesTovar[0]['filename']}.jpg"
*} title="{$page[0].title}" alt="{$page[0].title}" style="width: 100%;">
</div>
<div id="thumb-slider"
class="owl-theme owl-loaded owl-drag full_slider owl-carousel " data-nav='yes'
data-loop="no" data-margin="10" data-items_xs="2" data-items_sm="3"
<div id="thumb-slider" class="owl-theme owl-loaded owl-drag full_slider owl-carousel "
data-nav='yes' data-loop="no" data-margin="10" data-items_xs="2" data-items_sm="3"
data-items_md="3">
{section name=customer loop=$imagesTovar} {if $imagesTovar[customer].id}
<a data-index="{$customer}" class="img thumbnail "
data-image="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$imagesTovar[customer]['filename']}.jpg" title="{$page[0].title}">
<img src="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$imagesTovar[customer]['filename']}.jpg" title="{$page[0].title}"
alt="{$page[0].title}" class="yurec-thumbnail">
data-image="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$imagesTovar[customer]['filename']}.jpg"
title="{$page[0].title}">
<img src="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$imagesTovar[customer]['filename']}.jpg"
title="{$page[0].title}" alt="{$page[0].title}" class="yurec-thumbnail">
</a>
{/if} {/section}
</div>
</div>
@ -73,9 +76,10 @@
</div -->
<div class="product-label form-group">
<div class="stock">
<span>Доступность:</span> {if $page[0].ostatok>0}<span class="instock">В наличии ({$page[0].ostatok})</span>
<span>Доступность:</span> {if $page[0].ostatok>0}<span class="instock">В наличии
({$page[0].ostatok})</span>
{else}
<span class="instock">Можем попробовать привезти!</span>
{/if}
@ -83,8 +87,12 @@
</div>
<div class="product_page_price price" itemprop="offerDetails" itemscope=""
itemtype="http://data-vocabulary.org/Offer">
<span class="price-new" itemprop="price">$114.00</span>
<span class="price-old">$122.00</span>
{if ($page[0].akccena)}
<span class="price-new" itemprop="price">{$page[0].akccena} руб.</span>
<span class="price-old">{$page[0].cena} руб.</span>
{else}
<span class="price-new" itemprop="price">{$page[0].cena} руб.</span>
{/if}
</div>
</div>
@ -94,7 +102,8 @@
<div class="input-group quantity-control" unselectable="on"
style="-webkit-user-select: none;">
<label>Количество: </label>
<input class="form-control" type="text" name="quantity" value="1" id="number">
<input class="form-control" type="text" name="quantity" value="1"
id="number">
<input type="hidden" name="product_id" value="50">
<input type="hidden" id="pages_id" value="{$smarty.get.id}">
<span class="input-group-addon product_quantity_down"><i
@ -106,11 +115,10 @@
</div>
<div class="info-product-right">
<div class="cart">
<input type="button" data-toggle="tooltip" title=""
value="Купить" data-loading-text="Loading..."
id="button-cart" class="btn btn-mega btn-lg btn-add-to-cart"
onclick="cart.add('42', '1');"
data-original-title="Купить">
<input type="button" data-toggle="tooltip" title="" value="Купить"
data-loading-text="Loading..." id="button-cart"
class="btn btn-mega btn-lg btn-add-to-cart"
onclick="cart.add('42', '1');" data-original-title="Купить">
</div>
<!-- div class="add-to-links wish_comp">
<ul class="blank list-inline">
@ -160,42 +168,32 @@
<div class="producttab ">
<div class="tabsslider col-xs-12">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#tab-1">Характеристики</a>
</li>
<li class="item_nonactive "><a data-toggle="tab"
href="#tab-2">Отзывы</a></li>
<li class="item_nonactive "><a data-toggle="tab"
href="#tab-3">Вопросы по товару</a></li>
<li class="active"><a data-toggle="tab" href="#tab-1">Характеристики</a></li>
<li class="item_nonactive "><a data-toggle="tab" href="#tab-2">Отзывы</a></li>
<li class="item_nonactive "><a data-toggle="tab" href="#tab-3">Вопросы по товару</a></li>
</ul>
<div class="tab-content col-xs-12">
<div id="tab-1" class="tab-pane fade active in">
<table class="table">
{section name=customer loop=$har} {if $har[customer].id}
<tr>
<td>{$har[customer].opt}</td>
<td>{$har[customer].txt}</td>
</tr>
{/if} {/section}
</table>
</div>
<div id="tab-2" class="tab-pane fade in">
{include file=$inc_comments}
</div>
<div id="tab-3" class="tab-pane fade in">
</div>
@ -206,7 +204,7 @@
</div>
</div>
</div>
<!-- Related Products -->
<div class="related-product ">
@ -215,19 +213,23 @@
<hr>
<hr>
<div class="related-product-owl">
<div class=" owl-carousel related-owl " data-nav="yes" data-loop="yes" data-margin="30"
<div class=" owl-carousel related-owl " data-nav="yes" data-loop="no" data-margin="30"
data-items_xs="1" data-items_sm="4" data-items_md="5">
{section name=customer loop=$tovarHistory} {if $tovarHistory[customer].id}
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-1.jpg" alt=""></a>
<a href="/tovar_show/{$tovarHistory[customer].id}" class="product-img"><img
src="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$tovarHistory[customer].img}.jpg"
alt="{$tovarHistory[customer].title}" title="{$tovarHistory[customer].title}"></a>
<!--Sale Label-->
<span class="sale">-25%</span>
<!-- span class="sale">-25%</span -->
<div class="hover">
<ul>
<!--ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
@ -242,14 +244,16 @@
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</ul -->
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #01</a></h4>
<div class="ratings">
<h4><a
href="/tovar_show/{$tovarHistory[customer].id}">{$tovarHistory[customer].title|substr:30}</a>
</h4>
<!-- div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
@ -257,11 +261,15 @@
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
</div -->
<div class="price">
<span class="price-new">$43.00</span>
<span class="price-old">$75.00</span>
{if ($tovarHistory[customer].akccena)}
<span class="price-new">{$tovarHistory[customer].akccena}</span>
<span class="price-old">{$tovarHistory[customer].cena}</span>
{else}
<span class="price-new">{$tovarHistory[customer].cena}</span>
{/if}
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
@ -273,471 +281,18 @@
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
<button class="addToCart btn btn-default " type="button" data-toggle="tooltip"
title="" onclick="cart.add('42', '1');" data-original-title="Add to Cart">
<span class="">В корзину</span></button>
</div>
</div><!-- right block -->
</div>
</div>
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-3.jpg" alt=""></a>
<!--Sale Label-->
<span class="sale">-25%</span>
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #02</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$74.00</span>
<span class="price-old">$122.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
{/if} {/section}
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-2.jpg" alt=""></a>
<!--Sale Label-->
<span class="sale">-50%</span>
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #03</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$78.00</span>
<span class="price-old">$154.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-5.jpg" alt=""></a>
<!--Sale Label-->
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #04</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$78.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-4.jpg" alt=""></a>
<!--Sale Label-->
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #05</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$85.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-7.jpg" alt=""></a>
<!--Sale Label-->
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #06</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$68.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-6.jpg" alt=""></a>
<!--Sale Label-->
<span class="new">New</span>
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #07</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$58.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="product.html" class="product-img"><img
src="img/demo/shop/product/product-6.jpg" alt=""></a>
<!--Sale Label-->
<div class="hover">
<ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a href="product.html">Dummy product #08</a></h4>
<div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div>
<div class="price">
<span class="price-new">$74.00</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button"
data-toggle="tooltip" title="" onclick="cart.add('42', '1');"
data-original-title="Add to Cart"> <span class="">Add to
Cart</span></button>
</div>
</div><!-- right block -->
</div>
</div>
</div>
</div>
@ -746,6 +301,95 @@
<!-- end Related Products-->
<div class="related-product ">
<h3 class="modtitle">Похожие товары </h3>
<hr>
<hr>
<hr>
<div class="related-product-owl">
<div class=" owl-carousel related-owl " data-nav="yes" data-loop="no" data-margin="30"
data-items_xs="1" data-items_sm="4" data-items_md="5">
{section name=customer loop=$rndTovar} {if $rndTovar[customer].id}
<div class="product-layout">
<div class="product-item-container">
<div class="left-block">
<div class="product-image-container second_img ">
<a href="/tovar_show/{$rndTovar[customer].id}" class="product-img"><img
src="img/nofoto.jpg"
data-original="/img/{$smarty.server.SERVER_NAME}/tovar/square/{$rndTovar[customer].img}.jpg"
alt="{$rndTovar[customer].title}" class="lazy" title="{$rndTovar[customer].title}"></a>
<!--Sale Label-->
<!-- span class="sale">-25%</span -->
<div class="hover">
<!--ul>
<li class="icon-heart"><a class="wishlist" type="button"
data-toggle="tooltip" title=""
onclick="wishlist.add('42');"
data-original-title="Add to Wish List"><i
class="fa fa-heart"></i></a></li>
<li class="icon-exchange"><a class="compare" type="button"
data-toggle="tooltip" title=""
onclick="compare.add('42');"
data-original-title="Compare this Product"><i
class="fa fa-exchange"></i></a></li>
<li class="icon-search"><a class="quickview iframe-link "
data-fancybox-type="iframe" href="quickview.html"> <i
class="fa fa-search" aria-hidden="true"></i></a>
</li>
</ul -->
</div>
</div>
</div>
<div class="right-block">
<div class="caption">
<h4><a
href="/tovar_show/{$rndTovar[customer].id}">{$rndTovar[customer].title|substr:30}</a>
</h4>
<!-- div class="ratings">
<div class="rating-box">
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class=""><i class="fa fa-star "></i></span>
<span class="gray"><i class="fa fa-star "></i></span>
</div>
</div -->
<div class="price">
<span class="price-new">$43.00</span>
<span class="price-old">{$rndTovar[customer].cena}</span>
</div>
<div class="description item-desc hidden">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est . </p>
</div>
</div>
<div class="button-group">
<button class="addToCart btn btn-default " type="button" data-toggle="tooltip"
title="" onclick="cart.add('42', '1');" data-original-title="Add to Cart">
<span class="">В корзину</span></button>
</div>
</div><!-- right block -->
</div>
</div>
{/if} {/section}
</div>
</div>
</div>
</div>

View File

@ -6,6 +6,29 @@ $(".yurec-thumbnail").click(function(){
})
/* ----------------------------------------------------------------------
05.03.2023
Удаляем данные из корзины
---------------------------------------------------------------------- */
$(".global-cart-delete").click(function(event){
var id=$(this).data('id');
$.ajax({
type:"POST",
url:'/act/ajax',
data:"id="+id +"&act=delFromCart",
success:function(data){
$(".global-cart-summ").text(data + ' р. ')
}
})
$(".global-cart-str-" + id).hide('5000');
return false;
})
$(function(){
$("a.ancLinks").click(function(){

View File

@ -2,5 +2,5 @@
git add .
#git commit -m $(date "+%Y-%m-%d")
git commit -m "Отзывы к товару"
git commit -m "Работа с корзиной"
git push -u origin master