lillik / magento2-price-decimal

Magento 2 Extension: Price Decimal Precision
Apache License 2.0
110 stars 68 forks source link

extension issue #61

Open world-of-walker opened 3 years ago

world-of-walker commented 3 years ago

TypeError: round() expects parameter 2 to be int, string given in /var/www/vhosts/myorigin.info/httpdocs/app/code/Lillik/PriceDecimal/Model/Plugin/PriceCurrency.php:43 Stack trace: #0

Patriboom commented 3 years ago

You can scan the PriceCurrency.php file and replace all $this->getPricePrecision()

by

intval($this->getPricePrecision())

world-of-walker commented 3 years ago

number_format() expects parameter 2 to be int, string given when i click on product (backend) it giving this kind of error

quintenbuis commented 3 years ago

Hi @world-of-walker , This can be fixed by doing the following: https://github.com/quintenbuis/magento2-price-decimal/commit/1a8ee68d963560f2dc36a0f69beb3a42018ccb2e

This will also be fixed in #58