Important
- For the pre-sale question, please feel free to contact us via live chat on Landofcoder.com ( From Monday to Friday 8:30 am - 5:30 pm GMT+7 ) or leave an offline message, we will give you a response asap.
- For technical questions, please submit a ticket below (recommended option) or send us an email via [email protected]. Our dev will support you within 24 hours since the submitted time (DO NOT support free extensions)
I'm getting the attached error, 'division by 0' when trying to view a quotation in the backend at Sales > Quotations that contains a product with a price of $0. If the quotation contains only products that have a price, I can view the quotation no problem. I'm using the 2.2.x version of the extension with Magento Commerce 2.2.2 .
Hello Rich,
Have a nice day!
Thanks you for your report!
We resolved it on the latest module version. It was updated the check code for zero value of product price as this:
<?php
$base_price = (float)$base_price;
if($base_price && $base_price > 0) {
$gp_margin = round((($custom_price - $base_price)/$base_price)*100);
echo $gp_margin."%";
}
?>
Ok thanks, I'll make sure I have the latest version installed.
Hello Rich,
Please try to download the module file again on our site. We updated the module version to 1.0.3 (just same file name on download page).
Then upload module files and update it for your site.
will do, thanks