valid code message


  • Default avatar
    terry1    
     12 years ago
    0

    Hi all,

    Is there a way to add a valid code entered message? When a customer enters a valid code, the coupon code box goes away and then they will see their discount on the Payment Method page.

    It would be nice to just show a message after they enter the code that says "coupon accepted" or something like that :-)

    Thank you,

    Terry
  • Your avatar
    seyi    
     12 years ago
    0

    You can do this by altering the code and using joomla messaging system:

    in www/administrator/components/com_awocoupon/assets/virtuemart/ps_coupon_process.php, around line 1044, inside of function set_coupon_session, you can add something like this

    <?php
    global $mainframe;
    $mainframe->enqueueMessage('Coupon Accepted','message');
    ?>