[Skip to main content](#vessel-content)

#   Discount through affiliation program

##

- **[Chronis](/forum/user/44528-chronis "View Chronis's Profile")**
- [![Chronis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44528-chronis "View Chronis's Profile") Topic Author
- [ Offline](/forum/user/44528-chronis)

Less More

- Posts: 11
- Thank you received: 2
-
-

10 years 3 months ago [\#247359](#247359) by [Chronis](/forum/user/44528-chronis "View Chronis's Profile")  *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247359 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")* was created by *[Chronis](/forum/user/44528-chronis "View Chronis's Profile")*

I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website and comes to our site to get automatically a discount but only if he comes from the affiliate's website.

Thank you!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

10 years 3 months ago [\#247365](#247365) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247365 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hi,

There is no option for that.

You can do the opposite: when the customer uses a specific coupon code, you can force a specific affiliate.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Chronis](/forum/user/44528-chronis "View Chronis's Profile")**
- [![Chronis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44528-chronis "View Chronis's Profile") Topic Author
- [ Offline](/forum/user/44528-chronis)

Less More

- Posts: 11
- Thank you received: 2
-
-

10 years 3 months ago [\#247423](#247423) by [Chronis](/forum/user/44528-chronis "View Chronis's Profile")  Replied by *[Chronis](/forum/user/44528-chronis "View Chronis's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247423 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hello,

Thank you for your quick response. Have a great day!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Chronis](/forum/user/44528-chronis "View Chronis's Profile")**
- [![Chronis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44528-chronis "View Chronis's Profile") Topic Author
- [ Offline](/forum/user/44528-chronis)

Less More

- Posts: 11
- Thank you received: 2
-
-

10 years 3 months ago -  10 years 3 months ago [\#247453](#247453) by [Chronis](/forum/user/44528-chronis "View Chronis's Profile")  Replied by *[Chronis](/forum/user/44528-chronis "View Chronis's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247453 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

So I have another question about this. I set up a coupon for e.g. 5% off and I "force to affiliation" to a specific affiliate. I have set up the "percentage fee on sales" at the configuration/affiliate at hikashop for 10%. My question is what happens in the following scenarios:

1. Customer comes from affliate's website and uses the coupon: I guess customer gets 5% off and affiliate gets 5% of the sale.
2. Customer comes from affiliate's website but doesn't use the coupon: I guess affiliate gets the whole 10% of the sale.
3. Customer doesn't come from affiliate's website but uses the coupon: I guess customer gets 5% off and affiliate gets 5% of the sale.
4. Customer doesn't come from affiliate's website but doesn't use the coupon: I guess affiliate gets the whole 10% of the sale, if the cookies are still active for the affliate's website at customer's browser.

Please let me know if that is correct?

Thank you so much!!

Last edit: 10 years 3 months ago by [Chronis](/forum/user/44528-chronis "View Chronis's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago [\#247457](#247457) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247457 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hi,

If you configured 10% fee for your affiliates, they will always get 10%.
You can override the percentage fee per affiliate (in the customer edition interface) ; but the percentage do not change if a coupon is used or not.
Now it is a feature that we can add in our TODO list if you want to specify a new affiliate fee when the "force affiliation to" is used on a coupon.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Chronis](/forum/user/44528-chronis "View Chronis's Profile")**
- [![Chronis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44528-chronis "View Chronis's Profile") Topic Author
- [ Offline](/forum/user/44528-chronis)

Less More

- Posts: 11
- Thank you received: 2
-
-

10 years 3 months ago [\#247478](#247478) by [Chronis](/forum/user/44528-chronis "View Chronis's Profile")  Replied by *[Chronis](/forum/user/44528-chronis "View Chronis's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247478 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Thank you for your quick reply!!

So just to clarify things, if I have a coupon code for 5% off and I have set that forced to a specific affiliate, then the affiliate will get 5% of the sale and the customer 5% off?

I'm trying to figure out, how exactly the "force affiliation to" works.

Thanks again!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

10 years 3 months ago [\#247486](#247486) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247486 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hi,

No. If you set 5% in the coupon, the customer will get 5% that's all. If you set the "force affiliation to" to a partner, when the customer will use that coupon code, the partner will be added as affiliate to the order and he will receive the commission percentage as stated either in the settings of that partner, or in the Affiliates section of the HikaShop configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Chronis](/forum/user/44528-chronis "View Chronis's Profile")**
- [![Chronis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44528-chronis "View Chronis's Profile") Topic Author
- [ Offline](/forum/user/44528-chronis)

Less More

- Posts: 11
- Thank you received: 2
-
-

10 years 3 months ago [\#247531](#247531) by [Chronis](/forum/user/44528-chronis "View Chronis's Profile")  Replied by *[Chronis](/forum/user/44528-chronis "View Chronis's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#247531 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Thank you so much, that clarifies things!!

Have an awesome weekend!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile")
- [ Offline](/forum/user/29793-oxido)

Less More

- Posts: 285
- Thank you received: 42
-
-

2 years 9 months ago [\#358621](#358621) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#358621 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hi nicolas,
This situation is still the same, can't a discount or a coupon be added automatically when a buyer comes to the site through an affiliate link?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

2 years 9 months ago [\#358631](#358631) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#358631 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hi,

There is no such setting. The problem with that is that a coupon can only be added to a cart once the user added something to the cart. So the user is supposed to manually enter his coupon during the checkout. Then, the affiliate will be automatically linked to his order.
One easy solution would be to use an affiliate link which would add a product to the cart and add a coupon at the same time. That's possible if you provide the correct URL to the partner: [ www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html](https://www.hikashop.com/forum/discount-coupon/870273-add-to-cart-link-with-coupon-code.html)
But that's only realistic if you're selling only one product the partner would be interested in advertising to his audience.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile")
- [ Offline](/forum/user/29793-oxido)

Less More

- Posts: 285
- Thank you received: 42
-
-

2 years 9 months ago [\#358654](#358654) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#358654 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

And yet, the coupons have the option "Auto load in cart if possible".
I saw an even older post of yours [ #91730](https://www.hikashop.com/forum/2-general-talk-about-hikashop/78662-discount-for-affiliates-only.html#91730), if this is still available, maybe I will try to make a plugin for this.
For the moment, I'm not forced to use this, I see if I can use the available option in hikashop, by associating the discount code with an affiliate.
It seems to be an even simpler solution, but I will see if I will be asked about the links.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oxido](/forum/user/29793-oxido "View oxido's Profile")**
- [![oxido's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29793-oxido "View oxido's Profile")
- [ Offline](/forum/user/29793-oxido)

Less More

- Posts: 285
- Thank you received: 42
-
-

2 years 9 months ago -  2 years 9 months ago [\#358795](#358795) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#358795 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

What would be the correct approach to implement this thing, so that a coupon can "**Auto load in cart if possible**" only if there is an affiliate, should I create a new plugin or should this option be added to the already existing coupon creation section in hikashop?
Can you guide me?
Thank you!

I was about to hit "submit" button but I checked a little more and noticed that in the Coupons option
**Force affiliation to** I can select **current customer partner**
With this option and the check below (where we check if there is a partner in the cookie), we can have a very powerful feature.
Because we will be able to create a single coupon that can be used in combination with any affiliate, without having to create a coupon for each affiliate. Code:

$partner = JRequest::getCmd('hikashop_affiliate',0,'cookie'); if(empty($partner)) continue;

> That will skip all the discounts if there is no partner.

Last edit: 2 years 9 months ago by [oxido](/forum/user/29793-oxido "View oxido's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

2 years 9 months ago [\#358798](#358798) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount through affiliation program](/forum/39-affilation/885955-discount-through-affiliation-program#358798 "I have a quick questions. We are about to set up and affiliation program and we have figured it out how to setup. The question is if there is a way whoever clicks on the url of the affiliate's website...")*

Hi,

That indeed sounds like a good solution for what you want to do.
You can implement the onBeforeCouponCheck event and set $do to false in order to cancel the auto load when the affiliate cookie is not there.
[ www.hikashop.com/support/documentation/6...#onBeforeCouponCheck](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onBeforeCouponCheck)

The following user(s) said Thank You: [oxido](/forum/user/29793-oxido "View oxido's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2FmZmlsYXRpb24vODg1OTU1LWRpc2NvdW50LXRocm91Z2gtYWZmaWxpYXRpb24tcHJvZ3JhbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.092 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
