valid code message

  • Default avatar
     6 years ago

    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,

  • Your avatar
     6 years ago

    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

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