• Resolved stevesand

    (@stevesand)


    Hi, thank you for a great plugin, best one i used for currencies.

    My website crashed today due to a division by zero. Have not seen this before, might be related to an update?

    I dont use currency conversion by rate, i specify all prices per product in each currency so my rates are 0.

    In file classes/woocs.php
    line: 5473 & 5476,
    Please add 0-support for:

    $markup_offer[“priceSpecification”][“price”] = number_format($markup_offer[“priceSpecification”][“price”] / $rate, $precision, ‘.’, ”);

    Suggestion:
    $currentRate = $rate > 0 ? $markup_offer[“priceSpecification”][“price”] / $rate : 0;
    number_format($currentRate, $precision, ‘.’, ”);

    • This topic was modified 6 months ago by stevesand.
Viewing 1 replies (of 1 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Than you for your cooperation.

    I handed this to the developers

Viewing 1 replies (of 1 total)
  • The topic ‘Error due to division by zero’ is closed to new replies.