Skip to content

Commit 1beeb3a

Browse files
Merge branch 'master' of github.com:fancyecommerce/yii2_fecshop
2 parents 348c9a2 + b6a8c75 commit 1beeb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/page/Currency.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected function actionGetBaseCurrencyPrice($current_price, $current_currency
161161
if (isset($this->currencys[$current_currency]['rate'])) {
162162
$rate = $this->currencys[$current_currency]['rate'];
163163
if ($rate) {
164-
return bcmul($current_price, $rate, 2);
164+
return bcdiv($current_price, $rate, 2);
165165
}
166166
}
167167
}

0 commit comments

Comments
 (0)