Сайт делаю на локалке, стоит OCSHOP.CMS. Поставил autocalc_price_option_v2.0.16.xml и options_price_1_5_3_1-1_5_6_fixed.xml, работает все норм ! Поставил дополнительно fix_zero_price_in_category.xml, в админке в данных о товаре цену ставлю ноль (0 руб.), на главной в Новинки не показывало цену...тупо стоял 0 руб., добавил в файл fix_zero_price_in_category.xml ......
<file name="catalog/controller/module/product_tab.php">
<operation>
<search position="replace"><![CDATA[$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));]]></search>
<add><![CDATA[
if ($result['price'] > 0) {
$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));
} else {
$cat_product_price = 0;
foreach ($this->model_catalog_product->getProductOptions($result['product_id']) as $option) {
if ( isset($option['option_value'][0]['price']) ) {
$cat_product_price = $option['option_value'][0]['price'];
break;
}
}
$price = '<span style="font-weight:normal;">от</span> '.$this->currency->format($this->tax->calculate($cat_product_price, $result['tax_class_id'], $this->config->get('config_tax')));
}
]]></add>
</operation>
</file>
цена в Новинках появилась, а вот в Рекомендуем так и стоит 0 руб., все варианты перепробовал не могу понять что еще добавить !? Это все относится к модулю "Модуль Табы", в обычном модуле Рекомендуемые цена отображается первая из опций. Где капнуть ?