Reward sponsor after friend orders through a FB post


  • Default avatar
    peter49    
     10 months ago
    0

    This is a feature request. At the moment, the Facebook option in the Invitation form sends a simple coupon reward immediately after someone posts to his/her Facebook Wall.

    What I would like is this:

    • sponsors posts to FB Wall

    • post contains a link to my website

      • similar to the current {customer_link}, but it should go to the homepage of my website


    • when someone enters the website through this link + buys something, sponsor gets a reward



    Additional requests:

    • a minimum order value

    • a maximum number of rewards a sponsor can receive in a month



    The same should apply to the Twitter post on the Invitation form.

    This is more or less a copy of what http://www.friendbuy.com/ is doing, I have also seen it in other reward programs.
    Could you make this happen for AwoRewards? That would be great!


  • Your avatar
    seyi    
     10 months ago
    0

    Hello,

    You do not have to give a sponsor a coupon reward immediately for posting on facebook. You can setup a sponsor rule instead that would be triggered if the 'friend' did an action on your site, register or order.

    So basically your scenario works just like the customer_link, which is a registration link, you just dont want them to have to register. You want the friend to be able to checkout anonymously and the sponsor still receive reward?

    For minimum order value, you can already set this when creating a rule
  • Default avatar
    peter49    
     10 months ago
    0

    Ok, can you explain step-by-step how to set this up? Because I don't understand how AwoRewards 'knows' that the friend placed an order after seeing the sponsor's Facebook post.

    It is correct that I don't want the friend to register manually (this happens automatically on check-out, I use One Page Checkout by Rupostel).
    I also don't want the friend to check out anonymously, my site creates a silent account for new users.

    So what I want is this:
    • sponsor places a FB post with a link to my site

    • friend enters my site (through this link)

    • when the friend buys something, the sponsor gets rewarded



    Thanks for explaining this!
  • Your avatar
    seyi    
     10 months ago
    0

    Hello,

    the customer_link forwards the customer to the registration page, but before doing that adds a cookie. So when you register, and the joomla after registration event is called, the customer is automatically assigned to the sponsor, if the sponsor cookie exists, and that is how it works.

    So reading your scenario, the customer_link would work, you just want the customer to be forwarded to the homepage and not registration page. You can achieve this by changing some of AwoRewards code.

    in www/components/com_aworewards/controllers.php, around line 146 is this
    <?php
        JFactory
    ::getApplication()->redirect($registration_link);
    ?>


    Change it to this
    <?php
            JFactory
    ::getApplication()->redirect('index.php');
    ?>


  • Default avatar
    peter49    
     10 months ago
    0

    Ok great, I will try this!
  • Default avatar
    peter49    
     3 months ago
    0

    Hi Seyi, can you explain once more how I can send referrals to my homepage instead of the registration page?

    I followed your instructions exactly but I get this {customer_link} as a result:

    http://new.saintbasics.com/component/aworewards/?task=register&Itemid=753&id=1Jhf8rWV157Dfa05FVsxILZfijVNTvLh3WlR3iqd3xc%3D

    There are two things wrong with this URL:
    a) it is still the registration page
    b) the link goes to my development site instead of www. (is this because that is the first site enabled in my license?)

    Thanks for helping out!
  • Default avatar
    peter49    
     3 months ago
    0

    Update: I set the 'shorten URL' in the Invitation config to 'Yes' and now the correct www. shows up.

    The URL is not short at all:
    https://www.saintbasics.com/index.php?option=com_aworewards&task=register&Itemid=753&id=KSagsjEsztN19BDJrl02X9ElGHq%2Fh5kZnuDg2U%2B%2BZUU%3D

    But it does seem to work. My invitee is redirected to index.php now, probably thanks to the changes in controller.php

    So most of the problem is solved. Still, is there a way to get a shorter URL?
  • Your avatar
    seyi    
     3 months ago
    0

    Hello,

    In aworewards->configuration->api, did you fill out your google api key?
  • Your avatar
    seyi    
     3 months ago
    0

    Hello,

    The urls are initially built when the customer visits the invitation page. And that url is stored in the database. But if you need them to be rebuilt, then go to aworewards->users and click the 'regenerate links' button.
  • Default avatar
    peter49    
     2 months ago
    0

    I have now, it works. Thnx!