в базе
В ТАБЛИЦЕ x_virtuemart_productsсоздать строку product_noprice тип tinyint(1) структура null (Null чек)
в component/com_virtuemart/views/productdetails/tmpl/default.php
<?php
// Add To Cart Button
// if (!empty($this->product->prices) and !empty($this->product->images[0]) and $this->product->images[0]->file_is_downloadable==0 ) {
if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices) and (!$this->product->product_noprice)) {
echo $this->loadTemplate('addtocart');
} // Add To Cart Button END
?>
в administrator/components/com_virtuemart/helpers/shopfuntions.php
'product_noprice'$filterArray = array('product_name', 'created_on', 'product_sku',
'product_s_desc', 'product_desc',
'category_name', 'category_description', 'mf_name',
'product_price', 'product_special','product_noprice', 'product_sales', 'product_availability', 'product_available_date',
'product_height', 'product_width', 'product_length', 'product_lwh_uom',
'product_weight', 'product_weight_uom', 'product_in_stock', 'low_stock_notification',
'p.modified_on',
'product_unit', 'product_packaging', 'p.virtuemart_product_id', 'ordering');
в /administrator/components/com_virtuemart/tables/products.php добавить объявление в начале можно
var $product_noprice = null;
в админке в файле administrator/components/com_virtuemart/views/product/tmpl/product_edit_information.php
после
<tr class="row<?php echo $i?>">
<td width="21%" ><div style="text-align:right;font-weight:bold;">
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_SPECIAL')?></div>
</td>
<td width="10%" >
<?php echo VmHTML::checkbox('product_special', $this->product->product_special); ?>
</td>
</tr>
ДОБАВИТЬ
<tr class="row<?php echo $i?>" >
<td width="50%" >
<div style="text-align:left;font-weight:bold;">
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_NOPRICE')?></div>
</td>
<td width="50%" >
<?php echo VmHTML::checkbox('product_noprice', $this->product->product_noprice); ?>
</td>
<tr>
ну и в administrator/langugage/ru-ru/ru-ru.com_virtuemart.ini
дописать
COM_VIRTUEMART_PRODUCT_NOPRICE="Скрыть добавить в корзину"