Полное решение:
для версии 2.0.20
шаг 1 для отображения цен и формирования карточки корзины.
Настройки ->Формирование цен
ставим галочки на:
Показать цены
Цена(Показывать значение)
Цена в зависимости от комбинации товаров(Показывать значение)
Окончательная цена(Показывать значение, Показывать подпись)
Стандартизированная цена(Показывать значение)
http://i.imm.io/12qiL.png
шаг 2 цена в админке и цена для модуля корзина.
В файле /public_html/administrator/components/com_virtuemart/helpers/public_html/administrator/components/com_virtuemart/helpers/currencydisplay.php
ищем функцию public function priceDisplay у меня 293 строка
приводим её к виду
public function priceDisplay($price, $currencyId=0,$quantity = 1.0,$inToShopCurrency = false,$nb= -1){
$currencyId = $this->getCurrencyForDisplay($currencyId);
if($nb==-1){
$nb = $this->_nbDecimal;
}
//vmdebug('priceDisplay',$quantity);
/* if($this->_vendorCurrency_numeric===756){ // and $this->_numeric_code!==$this->_vendorCurrency_numeric){
$price = round((float)$price * 2,1) * 0.5 * (float)$quantity;
} else {
$price = round((float)$price,$nb) * (float)$quantity;
//}
$price = $this->convertCurrencyTo($currencyId,$price,$inToShopCurrency);
if($this->_numeric_code===756 and VmConfig::get('rappenrundung',FALSE)=="1"){
$price = round((float)$price * 2,1) * 0.5;
}//*/
return $this->getFormattedCurrency($price,$nb);
}
при желании все что заккоментировано разумеется удаляем я оставил для наглядности.
ВСЕ!
Благодарю robert за помощь в решении 1го шага, capricorn за наводку на файл при решении 2го шага.
Редактировать файл /public_html/administrator/components/com_virtuemart/views/product/tmpl/default.php не нужно
Здравствуйте!
У меня в currencydisplay.php уже есть такой код, но цены все-равно не показываются.
Посмотрите, пожалуйста, может я не заметила каких-то отличий. И что еще можно сделать, чтобы цена стала показываться?
public function priceDisplay($price, $currencyId=0,$quantity = 1.0,$inToShopCurrency = false,$nb= -1){
$currencyId = $this->getCurrencyForDisplay($currencyId);
if($nb==-1){
$nb = $this->_nbDecimal;
}
//vmdebug('priceDisplay',$quantity);
/* if($this->_vendorCurrency_numeric===756){ // and $this->_numeric_code!==$this->_vendorCurrency_numeric){
$price = round((float)$price * 2,1) * 0.5 * (float)$quantity;
} else {*/
$price = round((float)$price,$nb) * (float)$quantity;
//}
$price = $this->convertCurrencyTo($currencyId,$price,$inToShopCurrency);
if($this->_numeric_code===756 and VmConfig::get('rappenrundung',FALSE)=="1"){
$price = round((float)$price * 2,1) * 0.5;
}//*/
return $this->getFormattedCurrency($price,$nb);
}