Coupon at user registration


  • Default avatar
    rcm185    
     7 years ago
    0

    Dear all,

    I'm using AwoRewards to send a coupon when a user is registered at my site.
    But the coupon is send before the user has respond on the 'activated' link.
    I would like to have send the coupon when the user is activated.

    Is that possible?

    Thanks in advance
    Rob
  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    You can but would have to make a little change code wise. So to do this, go to:

    www/administrator/compoenents/com_aworewards/helpers/estore/virtuemart/rewardshandler.php, around line 100 in function queryRegistration is this:

    <?php
                    WHERE 1
    =1
    ?>


    Change it to this:
    <?php
                    WHERE u
    .block=0
    ?>


    Then disable the plugin "User - AwoRewards".

    This will stop the reward from being sent immediately after registration, and will work on cron. So when it finds a registered user who is activated that has not yet received the reward, it will then process it.