© Сделано на LiveStreet
Дизайн - ©2009 MODx RED Group
[+phx:if=`[+image-tovar-min+]`:fileexists:then=`
<tbody>
<tr>
<td colspan="3"><a rel="example_group" href="[+image-tovar+]" title="[+name+]">[+name+]</a></td>
</tr>
<tr class="cart-order">
<td width="50%"><img src="[+image-tovar-min+]" width="60" alt="[+name+]" /></td>
<td width="40%">[+price_total+] [+currency+]<br />x <input class="shk-count" type="text" size="2" name="count[]" maxlength="3" title="изменить количество" value="[+count+]" /></td>
<td width="10%" align="right">
<a href="[+url_del_item+]" title="Удалить" class="shk-del"><img src="assets/snippets/shopkeeper/style/default/img/delete.gif" border="0" width="17" height="17" alt="Удалить" /></a>
</td>
</tr>
</tbody>`:else=`
<tbody>
<tr>
<td colspan="3"><a rel="example_group" href="/assets/templates/stozhary/pic/NoPhotoBig.jpg" title="[+name+]">[+name+]</a></td>
</tr>
<tr class="cart-order">
<td width="50%"><img src="/assets/templates/stozhary/pic/NoPhoto.jpg" width="60" alt="[+name+]" /></td>
<td width="40%">[+price_total+] [+currency+]<br />x <input class="shk-count" type="text" size="2" name="count[]" maxlength="3" title="изменить количество" value="[+count+]" /></td>
<td width="10%" align="right">
<a href="[+url_del_item+]" title="Удалить" class="shk-del"><img src="assets/snippets/shopkeeper/style/default/img/delete.gif" border="0" width="17" height="17" alt="Удалить" /></a>
</td>
</tr>
</tbody>
`+]
[!eForm? &formid=`shopOrderForm`&tpl=`shopOrderForm` &report=`shopOrderReport` &eFormOnBeforeMailSent=`populateOrderData`&eFormOnMailSent=`sendOrderToManager` &gotoid=`1`&subject=`Новый заказ`!]
[!Shopkeeper? &noJQuery=`1` &flyToCart=`nofly` &cartRowTpl=`@FILE:chunk_shopCartRow2.tpl`!]
<head>
<title>[!seo? &type=`title` !]</title>
<meta name="keywords" content="[!seo? &type=`keywords` !]" />
<meta name="description" content="[!seo? &type=`description` !]" />
<?php
$id = ereg_replace("/\D/", "", $_GET['p']);
if ($id == "") {
switch ($type) {
case "title": return "[*seo_title*] :: [(site_name)]"; break;
case "keywords": return "[*seo_keywords*]"; break;
case "description": return "[*seo_description*]"; break;
}
}
$seo_tags = $modx->db->getRow($modx->db->query("
select c.pagetitle,
(select value from `modx_catalog_tmplvar_contentvalues` where contentid = c.id and tmplvarid = 17) as 'seo_title',
(select value from `modx_catalog_tmplvar_contentvalues` where contentid = c.id and tmplvarid = 15) as 'seo_keywords',
(select value from `modx_catalog_tmplvar_contentvalues` where contentid = c.id and tmplvarid = 16) as 'seo_description'
from `modx_catalog` c
where c.id = '".$id."'"));
switch ($type) {
case "title": return $seo_tags['seo_title'] == "" ? $seo_tags['pagetitle']." :: [(site_name)]" : $seo_tags['seo_title']." :: [(site_name)]"; break;
case "keywords": return $seo_tags['seo_keywords']; break;
case "description": return $seo_tags['seo_description']; break;
}
?>if ($_GET['p'] != "") {
$check = $modx->db->getRow($modx->db->query("select count(*) as 'cnt' from `modx_catalog` where id = '".ereg_replace("/\D/", "", $_GET['p'])."'"));
if ($check['cnt'] == 0) {
$modx->sendErrorPage();
}
}