рандомные товары, добавление в историю просмотра, чтение истории просмотра

This commit is contained in:
yurec 2022-06-01 23:04:28 +05:00
parent 5100cf3c02
commit c42f267932
1 changed files with 116 additions and 2 deletions

View File

@ -341,6 +341,116 @@
</div>
<!-- End Product Details Tab -->
<!-- :::::: Start Product Style - Default Section :::::: -->
<div class="product m-t-100">
<div class="container">
<div class="row">
<div class="col-12">
<!-- Start Section Title -->
<div class="section-content section-content--border m-b-35">
<h5 class="section-content__title">Похожие товары</h5>
<!-- a href="shop-sidebar-grid-left.html" class="btn btn--icon-left btn--small btn--radius btn--transparent btn--border-green btn--border-green-hover-green font--regular text-capitalize">More Products<i class="fal fa-angle-right"></i></a -->
</div>
<!-- End Section Title -->
</div>
</div>
<div class="row">
<div class="col-12">
<div class="default-slider default-slider--hover-bg-red product-default-slider">
<div class="product-default-slider-4grid-1rows gap__col--30 gap__row--40">
{section name=customer loop=$rndTovar} {if $rndTovar[customer].id}
<!-- Start Single Default Product -->
<div class="product__box product__default--single text-center">
<!-- Start Product Image -->
<div class="product__img-box pos-relative">
<a href="/tovar_show/{$rndTovar[customer].id}" class="product__img--link">
<!-- img class="product__img img-fluid" src="assets/img/product/size-normal/product-home-1-img-1.jpg" alt="" -->
{if $rndTovar[customer].img}
<img class="product__img img-fluid" src="/img/tovar/{$rndTovar[customer].img}.jpg"> {else}
<img class="product__img img-fluid" src="img/nofoto.jpg"> {/if}
</a>
</div>
<div class="product__content m-t-20">
<a href="/tovar_show/{$rndTovar[customer].id}" class="product__link">{$rndTovar[customer].txt}</a>
<div class="product__price m-t-5">
<span class="product__price">{$rndTovar[customer].cena} руб. <!--del>$29.00</del--></span>
</div>
</div>
<!-- End Product Content -->
</div>
<!-- End Single Default Product -->
{/if} {/section}
</div>
</div>
</div>
</div>
</div>
</div>
<!-- :::::: End Product Style - Default Section :::::: -->
<!-- :::::: Start Product Style - Default Section :::::: -->
<div class="product m-t-100">
<div class="container">
<div class="row">
<div class="col-12">
<!-- Start Section Title -->
<div class="section-content section-content--border m-b-35">
<h5 class="section-content__title">Недавно просмотренные товары</h5>
<!-- a href="shop-sidebar-grid-left.html" class="btn btn--icon-left btn--small btn--radius btn--transparent btn--border-green btn--border-green-hover-green font--regular text-capitalize">More Products<i class="fal fa-angle-right"></i></a -->
</div>
<!-- End Section Title -->
</div>
</div>
<div class="row">
<div class="col-12">
<div class="default-slider default-slider--hover-bg-red product-default-slider">
<div class="product-default-slider-4grid-1rows gap__col--30 gap__row--40">
{section name=customer loop=$tovarFromHistory} {if $tovarFromHistory[customer].id}
<!-- Start Single Default Product -->
<div class="product__box product__default--single text-center">
<!-- Start Product Image -->
<div class="product__img-box pos-relative">
<a href="/tovar_show/{$tovarFromHistory[customer].id}" class="product__img--link">
<!-- img class="product__img img-fluid" src="assets/img/product/size-normal/product-home-1-img-1.jpg" alt="" -->
{if $tovarFromHistory[customer].fileName}
<img class="product__img img-fluid" src="/img/tovar/{$tovarFromHistory[customer].fileName}.jpg"> {else}
<img class="product__img img-fluid" src="img/nofoto.jpg"> {/if}
</a>
</div>
<div class="product__content m-t-20">
<a href="/tovar_show/{$tovarFromHistory[customer].id}" class="product__link">{$tovarFromHistory[customer].txt}</a>
<div class="product__price m-t-5">
<span class="product__price">{$tovarFromHistory[customer].cena} руб. <!--del>$29.00</del--></span>
</div>
</div>
<!-- End Product Content -->
</div>
<!-- End Single Default Product -->
{/if} {/section}
</div>
</div>
</div>
</div>
</div>
</div>
<!-- :::::: End Product Style - Default Section :::::: -->
{*
<!-- :::::: Start Product Style - Default Section :::::: -->
<div class="product m-t-100">
<div class="container">
@ -359,7 +469,7 @@
<div class="col-12">
<div class="default-slider default-slider--hover-bg-red product-default-slider">
<div class="product-default-slider-4grid-1rows gap__col--30 gap__row--40">
{* цикл *}
цикл
<!-- Start Single Default Product -->
<div class="product__box product__default--single text-center">
<!-- Start Product Image -->
@ -397,7 +507,7 @@
<!-- End Product Content -->
</div>
<!-- End Single Default Product -->
{* цикл *}
цикл
@ -410,6 +520,10 @@
</div>
<!-- :::::: End Product Style - Default Section :::::: -->
*}
<!-- :::::: Start Company Logo Section :::::: -->
<div class="company-logo m-t-100">
<div class="container">