case 'A':
$options = array();
$session = JFactory::getSession();
$virtuemart_category_id =
$session->get('vmlastvisitedcategoryid', 0, 'vm');
$productModel = VmModel::getModel('product');
$selected = JRequest::getInt('virtuemart_product_id');
$uncatChildren = $productModel->getUncategorizedChildren($selected);
foreach($uncatChildren as $k =>$child ){
$options[] = array( 'value' => JRoute::_
('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=
'.$virtuemart_category_id.'&virtuemart_product_id='.$child['virtuemart_product_id']),
'id'=>$child['virtuemart_product_id'],
'text' =>$child['product_name'],
'desc' =>$child['product_desc'],
'articul' =>$child['product_sku'],
'tovarimage' =>$child['file_url_thumb'],
'tovarmodimage' =>$child['file_url'],
'tovarprice' =>$child['product_price'],
'NDS' =>$child['product_price']/100*20,
'tovarpriceNDS' =>$child['product_price']/100*20+$child['product_price'] );}
$res=array();
$table='<div class="yermak_cf"><table width="100%">
<tr>
<th align="center">Артикул</th>
<th align="left" colspan="2" width="40%" style="padding-left: 8px;">Наименование предложения</th>
<th align="center">Цена без НДС</th>
<th align="center">НДС (20%)</th>
<th align="center" style="border-right: none">Цена с НДС</th>
<th align="center" style="border-left: none"></th>
</tr>';
foreach($options as $arr):
if ( $arr['value'] === JRoute::_
('index.php?option=com_virtuemart&view=productdetails
&virtuemart_category_id='.$virtuemart_category_id.
'&virtuemart_product_id='.$selected)) continue;
$res[]= '<tr>
<td class="sku" align="center">'.$arr['articul'].'</td>
<td width="20px" style="padding: 0 0 0 8px; border-right: none;"><img class="product-image" src='.JRoute::_('/').$arr['tovarimage'].'></a></td>
<td style="border-left: none;"><span class="child_product_name">'.$arr['text'].'</span>
<!--<br /><span class="child_product_desc">'.$arr['desc'].'</span>-->
</td>
<td class="price">'.$currency->priceDisplay((float)$arr['tovarprice']).'</td>
<td class="price">'.$currency->priceDisplay((float)$arr['NDS']).'</td>
<td class="price" style="border-right: none">'.$currency->priceDisplay((float)$arr['tovarpriceNDS']).'</td>
<td style="margin-right: 10px; padding-left: 10px; border-left: none;"><form method="post" class="product js-recalculate" action="index.php" >
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" value="1" /></span>
<span class="quantity-controls js-recalculate">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" /></span>
<span class="addtocart-button"><input type="submit" name="addtocart"
class="addtocart-button" value="" /></span>
<input class="pname" type="hidden" value='.$arr['text'].'>
<input type="hidden" value="com_virtuemart" name="option">
<input type="hidden" value="cart" name="view">
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" value='.$arr['id'].' name="virtuemart_product_id[]">
<input type="hidden" value="0" name="virtuemart_category_id[]"></form></td></tr>';
endforeach;
$str = implode($res);
return '<br>'.$table.''.$str.'</table></div>';
break;