Class "CouponHelper" not found...


  • Default avatar
    carmine    
     3 years ago
    0

    Hello. Installation is Joomla 2.5.7, AWOCoupon Pro 2.1.5

    I can create and add coupons in the front end. When I get to the payment page, I receive the following error:

    Fatal error: Class 'CouponHelper' not found in /home/michaela/public_html/_systest/administrator/components/com_virtuemart/models/orders.php on line 618

    Any ideas what might be happening?

    Thanks,
    Carmine
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    That is strange, that class should exist before that function is called. Ok, you can try opening up the file with the fatal error, find the line which should be on line 618

    <?php
        CouponHelper
    ::RemoveCoupon($_cart->couponCode);
    ?>


    and add this right before that line
    <?php
        
    if (!class_exists('CouponHelper')) {
            require(
    JPATH_VM_SITE DS 'helpers' DS 'coupon.php');
        }
    ?>


    That should fix it.