Encouraging Referrals

newbienewbie Member
Hi Foxy friends,

Couple of questions for you...

1) Is there a way to discount a Subscription the next time it runs? We are thinking about a 1 time subscription discount for existing customers who refer someone else, then the subscription price should return back to the normal/previous price for the following renewal.

2) How might we include a unique referral coupon code in receipt emails, so a person who just finished a purchase could refer someone else and we could observe when their unique referral coupon code was successfully utilized?

Thanks in advance!
Tagged:
Comments
  • fc_adamfc_adam FoxyCart Team
    @newbie,
    1) Is there a way to discount a Subscription the next time it runs? We are thinking about a 1 time subscription discount for existing customers who refer someone else, then the subscription price should return back to the normal/previous price for the following renewal.
    It is possible to add a coupon to an existing subscription. To do that - you'd find the subscription in your store's administration in the "subscriptions" section, and click to "edit" it. On the edit screen for the sub, towards the bottom you'll then click the "Advanced Edit" button to show the subscriptions transaction template, which is a representation of the subscription.

    To add a coupon through the advanced edit, you'll edit the "discounts" node to detail the coupon you're adding. If the subscription doesn't already have a coupon attached, the discounts node will look like this:
    <discounts/>
    To update it to include a coupon - you would update it to look like this, where COUPON-CODE is the code of the coupon you're adding:
    <discounts>
    <discount>
    <code><![CDATA[COUPON-CODE]]>


    If you need to add multiple coupons, you would simply add additional discount nodes like this:
    <discounts>
    <discount>
    <code><![CDATA[COUPON-CODE]]>



    <![CDATA[COUPON-CODE-2]]>

    If you save the subscription, it will update to add in the coupon(s) you've specified.

    You will also need to have the coupon created that you want to make use of for these subscriptions. As you only want it to last for a single month - there are two approaches you can take with the coupon to achieve that:

    * If you will only ever give a customer 1 instance of the discount (even if they refer multiple people), then you could create a coupon with just a single code, and set the "uses per customer" to be 1.
    * If you need to be able to provide the 1 month discount to users multiple times, then I'd recommend creating a coupon with a stack of different unique codes, and setting the "uses per code" to be 1 instead.

    In both instances there, as soon as the coupon code has been applied to a subscription renewal once, it won't apply again. As the restriction is on the coupon itself, you won't need to edit the subscription to remove it at all.
    2) How might we include a unique referral coupon code in receipt emails, so a person who just finished a purchase could refer someone else and we could observe when their unique referral coupon code was successfully utilized?
    That's a good question. It depends how much you want to automate the process of detecting a referral, and how you want the customers to be able to pass on their referral code too.

    One approach you could take would be to use the customers ID as a unique identifier that they can then use to pass on to other people. That value is included in the data available in the templates - so you could output it as a referral code for them to pass on to other people. It's available as {{ customer_id }}

    To then capture that value for referred customers, you could include a custom field on the checkout where they can enter the referral code. You can then either manually monitor transactions as they come in for that code and apply the coupon as detailed above, or you could also automate that either partially or completely with some custom coding, making use of the datafeed and our API.
  • Wonderful, thank you sir!
Sign In or Register to comment.