Expire Coupon Error


  • Your avatar
    seyi    
     12 years ago
    0

    What is the message then? Try this code below to see.

    <?php
        
    if(self::$_triesValidateCoupon<8){
            
    $redirectMsg CouponHelper::ValidateCouponCode($this->couponCode$prices['salesPrice']);
        } else{
            
    $redirectMsg JText::_('COM_VIRTUEMART_CART_COUPON_TOO_MANY_TRIES');
        }
    exit(
    $redirectMsg);
    ?>
  • Default avatar
    mile2    
     12 years ago
    0

    Redirecting me to complletly balnk page with this massage

    Coupon code not found. Please try again.

  • Your avatar
    seyi    
     12 years ago
    0

    If you want to disable it, this should do it:

    <?php
        
    if(self::$_triesValidateCoupon<8){
            
    $redirectMsg CouponHelper::ValidateCouponCode($this->couponCode$prices['salesPrice']);
        } else{
            
    $redirectMsg JText::_('COM_VIRTUEMART_CART_COUPON_TOO_MANY_TRIES');
        }
     
    $redirectMsg '';
    ?>


  • Default avatar
    mile2    
     12 years ago
    0

    Yes is working now

    Thanks