Jump to content

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


Recommended Posts

support
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;

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...