' . $this->diafan->_('Товар временно отсутствует') . '
';
$hide_submit = true;
$waitlist = true;
}
if(! $result["result"]["cart_link"])
{
$hide_submit = true;
}
// у товара несколько цен
if ($result["row"]["price_arr"])
{
echo '';
foreach ($result["result"]["depends_param"] as $param)
{
if(! empty($result["row"]["param_multiple"][$param["id"]]))
{
if(count($result["row"]["param_multiple"][$param["id"]]) == 1)
{
foreach($result["row"]["param_multiple"][$param["id"]] as $value => $depend)
{
echo '';
}
}
else
{
$select = '';
foreach($param["values"] as $value)
{
if(! empty($result["row"]["param_multiple"][$param["id"]][$value["id"]]))
{
if(! $select)
{
$select = $param["name"].': ';
}
}
}
}
echo '
';
foreach($result["row"]["price_arr"] as $price)
{
$param_code = '';
foreach($price["param"] as $p)
{
if($p["value"])
{
$param_code .= ' param'.$p["id"].'="'.$p["value"].'"';
}
}
if(! empty($price["image_rel"]))
{
$param_code .= ' image_id="'.$price["image_rel"].'"';
}
echo '';
echo '
' . $price["price"] . ' ' . $result["result"]["currency"] . '
';
if (!empty($price["old_price"]))
{
echo '
Старая цена:
' . $price["old_price"] . ' ' . $result["result"]["currency"] . '
';
}
/* echo '
' . $this->diafan->_('Цена') . ': ' . $price["price"] . ' ' . $result["result"]["currency"] . '
';
if (!empty($price["old_price"]))
{
echo '
' . $this->diafan->_('Старая цена') . ': ' . $price["old_price"] . ''
. ' ' . $result["result"]["currency"] . '
';
}
if (! $price["count"] && empty($hide_submit))
{
echo '
' . $this->diafan->_('Товар временно отсутствует') . '';
$waitlist = true;
} */
echo '
';
}
}
/*if(! empty($waitlist))
{
echo '
';
if (!empty($result["row"]["count_in_cart"]))
{
echo $this->diafan->_('В
корзине %s шт.', true, BASE_PATH_HREF . $result["result"]["cart_link"], $result["row"]["count_in_cart"]);
}
echo '
';
if($result["result"]["wishlist_link"])
{
echo '