R Rafina Panel guide
Guides / Sales and customers

Affiliate program

Customers can become the store's affiliates: they share their personal link or discount code and earn a commission on every purchase that comes through them. They withdraw the commission to their wallet or bank account.

Where is it? Rafina Panel → Affiliate program

Affiliate program page in the panel with the off-state message and tabs
The Affiliate program page; until it is turned on, a message that it is off appears at the top of the page

The page has five tabs: Settings, Affiliates, Commissions, Withdrawal requests and Report. There are also parts outside this page: Setting a commission for each product and The affiliate's bank account in the user profile.

Setup

  1. In the “Settings” tab, turn on “Affiliate program on”.
  2. Set the commission type and rate and, if needed, write separate percentages for categories.
  3. Set the holding period, the minimum withdrawal amount and the withdrawal methods.
  4. Write the “Program terms”; the affiliate sees them before signing up.
  5. Click “Save”. The “Affiliate program” section appears in customers' accounts.

Settings tab

Enabled and sign-up

Switches for turning on, automatic membership approval, first purchase only, earning box, and link persistence
The “Enabled and sign-up” box
OptionWhat it doesDefault
Affiliate program onThe “Affiliate program” section appears in customers' accounts, and purchases that come through an affiliate's link or discount code earn commission.Off
Auto-approve sign-upIf off, every sign-up request waits for your approval in the “Affiliates” tab.On
First purchase of each customer onlyIf on, only each customer's first paid order earns commission.Off
“Earn income” box on the product pageOn the product page it shows that product's commission amount, and the affiliate gets that product's personal link with one click. For someone who is not an affiliate, it has a sign-up or login link.On
Referral link lifetime (days)For this many days after the click on the link, the visitor's purchase is recorded under the affiliate. Between 1 and 365.30

Commission rate

Commission type, commission percentage, and the per-category percentage list
Purchase amount means the item total after the discount code; shipping and tax are not counted
OptionWhat it doesDefault
Commission type“Percentage of purchase amount” or “Fixed amount per order”.Percentage
Commission percentageThe store-wide percentage. With the “Fixed amount” type its name becomes “Commission amount per order”. A separate rate for an affiliate in the “Affiliates” tab overrides this number.10
Separate percentage for categoriesA percentage field next to each category, with “Search categories”. An empty field means the store-wide percentage. An item in several categories gets the highest percentage. It applies only with the “Percentage of purchase amount” type.Empty

Commission withdrawal

Holding period, minimum withdrawal amount, bank details lock, and withdrawal methods
The “Commission withdrawal” box
OptionWhat it doesDefault
Holding period after order completion (days)A commission cannot be withdrawn for this long after the order is completed, so the return window passes. Zero means immediately.7
Minimum withdrawal amount (Toman)For bank payouts only; a transfer to the wallet is possible for any amount.100,000
Lock bank detailsThe affiliate registers their account once; after that only you can change it, from Edit user in the dashboard.Off
Withdrawal methods“Store wallet (automatic, immediate)” and “Payout to bank account (with your review)”.Both

Texts

Intro text and program rules boxes
Introduction and terms
OptionWhat it does
Introduction textAppears at the top of the Affiliate program section in the account.
Program termsThe affiliate sees and accepts this text before signing up.

Affiliates tab

Affiliates tab with the add affiliate box, status filter, and search
Requests awaiting approval are at the top of the list
OptionWhat it does
Add to affiliatesEnter a user's email, username or mobile; the user becomes an active affiliate and their referral code is created.
Status filterAll, On hold, Active, Rejected, Suspended.
SearchBy name, email, mobile or referral code.
ColumnsAffiliate, status, referral code, separate percentage (or “Store rate”), clicks, orders, approved commission, balance, discount codes, sign-up.
Approve / RejectFor a pending request.
Suspend / ReactivateA suspended or rejected affiliate no longer has purchases recorded under their name; their link and discount code stop working too.
Rate and discount code“This affiliate's separate percentage” (empty means the store rate) and “This affiliate's discount codes” (comma-separated; the code must already exist in the Discount code section, and a purchase made with it goes to this affiliate). The “Create discount code” link takes you to that section.
CommissionsOpens the Commissions tab for this affiliate only.
ProfileThe user edit page in the dashboard.

Commissions tab

Commissions tab with the status filter
A commission is approved automatically when the order is completed and rejected when it is cancelled or returned

Filters: All, Awaiting order completion, Approved, Cancelled. Columns: order, affiliate, purchase amount, commission, “Via” (link or discount code), status, date and “Withdrawable from”. You can change each commission's status manually: “Approve”, “Reject” or “Return to waiting”. A rejected commission does not come back even if the same order is completed later.

Withdrawal requests tab

Withdrawal requests tab with the status filter
Withdrawals are paid out to the wallet automatically; you make bank payouts yourself

Filters: All, Awaiting payout, Paid, Rejected. Columns: Affiliate, Amount, Method, "IBAN and account holder (at time of request)", Card number, Affiliate note, and Date.

  1. Transfer the amount from your own bank account to the IBAN shown.
  2. Enter the payout tracking number in "Your note".
  3. Click "Paid" and confirm. If the request is not valid, click "Reject request"; its amount returns to the affiliate's balance.

Report tab

Affiliate program report cards
Totals for all affiliates since this section was turned on

Cards: All affiliates, Active, Awaiting approval, Link clicks, Orders with commission, Pending commission, Approved commission, Paid out, and Awaiting payout. "Refresh" reloads the numbers.

Commission per product (product edit page)

When the affiliate program is on, two boxes appear in the "General" tab of the product data:

OptionWhat it does
Affiliate program: do not calculate commission for this productThis product earns no commission, even for an affiliate with a custom rate. With the "Fixed amount" type, an order containing only these products earns no commission. This product also does not appear in the affiliate's "Products to promote" list.
Commission percentage for this product (%)Takes priority over the category percentage and the global percentage; an affiliate's custom percentage takes priority over this one. Empty means the category or global percentage applies. It only applies with the "Percentage of purchase amount" type. Persian digits are accepted too.

Variations of a variable product follow the same setting as the parent product.

Users: adding an affiliate and bank account

Add user form with the "Make this user an active affiliate" checkbox
The "Make this user an active affiliate" checkbox on the "Users → Add user" page
  • Add user: On "Users → Add user" there is an "Affiliate program" row with the "Make this user an active affiliate" checkbox. The referral code is created immediately, and the user sees the affiliate program panel in their account.
  • Affiliate program bank account: On the edit page of a user who is an affiliate, a section appears with "IBAN", "Card number", and "Account holder name" (only for the shop manager and administrator). With "Lock bank details" on, they can only be changed from here. An empty IBAN clears the saved account so the affiliate can register it again themselves.

What does the affiliate see in their account?

Their own personal link and a link builder for any page of the site, a QR code of the link with a download button, balance and commissions, the withdrawal form and bank account registration, and a "Products to promote" card showing each product's link, its commission at today's price, and the number of sales that came through them.

FAQ and troubleshooting

Does the affiliate earn commission on their own purchases?

No. An order placed by the affiliate themselves earns them no commission.

What if a customer came through a link and also enters another affiliate's discount code?

An affiliate's personal discount code takes priority over the link, and the order is credited to the code's owner.

The commission stays pending and is not approved.

The commission is approved when the order becomes "Completed" and can be withdrawn after the "holding period". Complete orders after delivery, or approve them manually from the Commissions tab.

Is the affiliate notified?

Membership approval, new commission, commission approval, payout and withdrawal rejection, and, for the admin, new member and new withdrawal request, are events in the "Club and affiliate program" group in the SMS panel and email panel, and are off by default. SMS panel · Email panel