Last Updated a year ago

How to add a reflink from the Referral Program to the shared cart link?

If you use two modules:
  • Cart Sharing
  • Referral Program
You can add the referral program participant's reflink to the cart sharing URL, so the link stores both variables, e.g.:
https://yourshop.com?pshowsharecart=ca56bfa35402677f072a0d56fc64ec70&utm_source=pshowreferrers&utm_campaign=REF_Z8N6KWDSYL

Use this guide to learn about the supported hooks:
How to place an individual reflink anywhere in the store

  1. Create a new .tpl file for the PShowCartShare module in your theme: link
  2. Copy the content of this file into the new file: link
  3. In the new file, find the code responsible for displaying the link.
  4. Next to the link, add the hook responsible for displaying the reflink, preceding the whole thing with an "&" character.
  5. The final code should look something like this: link

If the customer is logged into the store and is a participant in the referral program, the cart sharing link is automatically supplemented with the reflink, so the customer can conveniently use both features at once.

For guests and logged-in customers who are not participants in the referral program, the module generates a classic sharing link without additional parameters.

Please Wait!

Please wait... it will take a second!

Kliknij by skopiować