{**
* XS2: Отображение товара
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
{* Отображение пути в каталоге *}
{xs2Fetch mod=$_THE.QUE.MOD met="path" atr=$_THE.PARAMS[0]}
{* /Отображение пути в каталоге *}
{* Отображение товара *}
{xs2GetNode NodId=$_THE.PARAMS[0] var="item"}
<h1>{$item.NName}</h1>
{if $item.Photo}
<p><img src="{$item.Photo.path}" width="{$item.Photo.width}" height="{$item.Photo.height}"></p>
{/if}
<p>
{if $item.Code}Артикул: {$item.Code}<br>{/if}
{if $item.Price}Цена: {$item.Price}<br>{/if}
</p>
{if $item.Description}
<p>{$item.Description}</p>
{/if}
{* /Отображение товара *}
{* Добавление товара в корзину *}
<p><a href="{xs2Href mod=$_THE.QUE.MOD obj="order" met="add" atr=$item.NodId}">Добавить в корзину</a></p>
{* /Добавление товара в корзину *}
{* Товары в корзине *}
<hr>
{xs2Fetch mod=$_THE.QUE.MOD obj="order" met="total"}
{strip}
<p>
{if $basketCount}
<a href="{xs2Href mod=$_THE.QUE.MOD obj="order" met="basket"}">Корзина</a>:<br>
Товаров в корзине: {$basketCount}
<br>
На сумму: {$basketTotal}
{else}
Корзина пуста
{/if}
</p>
{/strip}
{* /Товары в корзине *}
|
|