COUPON_NOT_VALID


  • Default avatar
    MyWorld    
     4 years ago
    0

    I'm getting the below when I enter a wrong code. How do I change "COUPON_NOT_VALID" to "This Coupon Is Not Valid". I looked under Coupon Code Error Description but I don't see anything that might match that.

    Error
    COUPON_NOT_VALID

    Thanks
  • Your avatar
    seyi    
     4 years ago
    0

    Hello,

    Thanks for pointing that out, will be fixed next update. In
    www/administrator/components/com_awocoupon/helpers/estore/hikashop/couponhandler.php

    around line 1508 is this
    <?php
    $err 
    = (!empty($this->coupon_row) ? $this->coupon_row->coupon_code.': ' '').$this->params->get($key,'COUPON_NOT_VALID');
    ?>


    change it to this:
    <?php
    $err 
    = (!empty($this->coupon_row) ? $this->coupon_row->coupon_code.': ' '').$this->params->get($key,JText::_('COUPON_NOT_VALID'));
    ?>


    The error will then be changed to:
    The coupon you entered is not valid
  • Default avatar
    MyWorld    
     4 years ago
    0

    Thank you!!