# Referrals Extra

**URL:** <https://forum.modmore.com/t/referrals-extra/2479>\
**Category:** Commerce\
**Created:** [July 3, 2023, 3:36pm UTC](https://forum.modmore.com/t/referrals-extra/2479 "2023-07-03T15:36:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisandy](https://forum.modmore.com/user_avatar/forum.modmore.com/chrisandy/32/339_2.png) [@chrisandy](https://forum.modmore.com/u/chrisandy)\
**Post date:** [July 3, 2023, 3:36pm UTC](https://forum.modmore.com/t/referrals-extra/2479/1 "2023-07-03T15:36:47Z")

</div>

Anybody using the referrals extra? Just wondering if it works well? Also, will it only work if the referring link, links to a product or will the token stay in place if the visitor goes elsewhere on the site?

---

<div class="post-metadata">

**Author:** ![digitalpenguin](https://forum.modmore.com/user_avatar/forum.modmore.com/digitalpenguin/32/105_2.png) [@digitalpenguin](https://forum.modmore.com/u/digitalpenguin)\
**Post date:** [July 4, 2023, 2:10am UTC](https://forum.modmore.com/t/referrals-extra/2479/2 "2023-07-04T02:10:16Z")

</div>

Hi @chrisandy 👋  
I actually just updated Referrals over the weekend for MODX 3 and PHP 8, so it should be working fine. If there are any issues, please report them on the repo and I’ll get them sorted: [GitHub - digitalpenguin/commerce\_referrals: A referral module for Commerce on MODX.](https://github.com/digitalpenguin/commerce_referrals)

On the first page that loads (when using the `?ref=my-referral-code` parameter), it’ll add that to the user’s session. So even if they navigate away from the shop and back, it’ll still add the referral info to any completed purchase.

---

<div class="post-metadata">

**Author:** ![chrisandy](https://forum.modmore.com/user_avatar/forum.modmore.com/chrisandy/32/339_2.png) [@chrisandy](https://forum.modmore.com/u/chrisandy)\
**Post date:** [July 4, 2023, 4:36am UTC](https://forum.modmore.com/t/referrals-extra/2479/3 "2023-07-04T04:36:20Z")

</div>

Thank you - I noticed it had just been updated. I’m at the stage of preparing a quote for a client so hopefully I can get to use it.

---

<div class="post-metadata">

**Author:** ![sebastian-marinescu](https://forum.modmore.com/user_avatar/forum.modmore.com/sebastian-marinescu/32/252_2.png) [@sebastian-marinescu](https://forum.modmore.com/u/sebastian-marinescu)\
**Post date:** [July 5, 2023, 3:06pm UTC](https://forum.modmore.com/t/referrals-extra/2479/4 "2023-07-05T15:06:46Z")

</div>

Hi @digitalpenguin, sounds very nice and very interesting!  
How long would the referral be normally stored in the user’s session?  
Like 1 week? 1 month? Or forever, if he doesn’t clean his browser?

---

<div class="post-metadata">

**Author:** ![digitalpenguin](https://forum.modmore.com/user_avatar/forum.modmore.com/digitalpenguin/32/105_2.png) [@digitalpenguin](https://forum.modmore.com/u/digitalpenguin)\
**Post date:** [July 6, 2023, 2:44am UTC](https://forum.modmore.com/t/referrals-extra/2479/5 "2023-07-06T02:44:01Z")

</div>

Hey @sebastian-marinescu 👋  
Currently there’s no time limit and that token would also be used for future purchases if in the same session. If a different referral url token was used though, it would be overwritten by the new one.

---

<div class="post-metadata">

**Author:** ![sebastian-marinescu](https://forum.modmore.com/user_avatar/forum.modmore.com/sebastian-marinescu/32/252_2.png) [@sebastian-marinescu](https://forum.modmore.com/u/sebastian-marinescu)\
**Post date:** [July 6, 2023, 2:17pm UTC](https://forum.modmore.com/t/referrals-extra/2479/6 "2023-07-06T14:17:24Z")

</div>

Sounds perfect - thanks! 👌🏽
