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
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
- Create a new .tpl file for the PShowCartShare module in your theme: link
- Copy the content of this file into the new file: link
- In the new file, find the code responsible for displaying the link.
- Next to the link, add the hook responsible for displaying the reflink, preceding the whole thing with an "&" character.
- 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.