Перейти к содержанию
Форум поддержки пользователей VamShop

При установленном разделителе тысяч не верно считается выгода у товара со скидкой.


Рекомендуемые сообщения

2 часа назад, eugenem сказал:

image.pngПоставил разделитель точку - выгода 4 р.

Спасибо, что сообщили о проблеме.

В /includes/classes/vam_price.php поменяйте:

$vygoda_price = number_format(str_replace($this->currencies[$this->actualCurr]['symbol_left'],'',$this->Format($pPrice, $format)),0,$this->currencies[$this->actualCurr]['decimal_point'],$this->currencies[$this->actualCurr]['thousands_point']);
$vygoda_old = number_format(str_replace($this->currencies[$this->actualCurr]['symbol_left'],'',$this->Format($sPrice, $format)),0,$this->currencies[$this->actualCurr]['decimal_point'],$this->currencies[$this->actualCurr]['thousands_point']);

на:

$vygoda_price = $pPrice;
$vygoda_old = $sPrice;

Встречается несколько раз в файле, меняйте везде.

Ссылка на сообщение
Поделиться на другие сайты
×
×
  • Создать...