Unrecognized mathop error


  • Default avatar
    tomh    
     a year ago
    0

    Hello,

    I noticed that when a transaction is completed whereas the AWO Coupon is used and redeemed on my website, 2 to 8 of the following error messages are generated in the VM error file:

    ERROR vmError: Unrecognised mathop in calculation rule found, seems you created this rule with plugin not longer accesible (deactivated, uninstalled?).

    There is no visible error in the Virtuemart and the AWO processes of the website.

    Can you please advise how you think the error message can be eliminated?

    Thank you,
    Tom

  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    In this file:
    www/plugins/vmcalculation/awocoupon/awocoupon.php

    change the function to this:
    <?php
        
    public function plgVmInterpreteMathOp ($calculationHelper$rule$price,$revert){
            
            
    $rule = (object)$rule;
            if(!empty(
    $rule->awocoupon_vatoffset)) return $price;
            
            return 
    $price;

        }
    ?>


    That should get rid of that error.