Affiliate commission only earned on some products

  • Posts: 52
  • Thank you received: 2
8 years 4 months ago #220915

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4

I am setting up the shop for a client. She wants to have partners who will sell a program once they are trained and we want to use the affiliate program. However, the affiliate / partner is only allowed to earn a commission on some products not on all of them.

We also do not want to show a become an affiliate on registration as she needs to approve / add them manually pending accreditation.

Or is there a better solution to it?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 81379
  • Thank you received: 13037
  • MODERATOR
8 years 4 months ago #220952

Hi,

There is no settings to limit the affiliation to only some products.
You would have to modification the code of the file plugins/system/hikashopaffiliate/hikashopaffiliate.php in order to handle that.

The following user(s) said Thank You: ozwest

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
8 years 4 months ago #221518

Can this file be overridden so that updates do not affect it?

Also, how would I show the affiliate section only in the customer section if the customer is an affiliate? We need to setup the affiliate manually in order to control the earnings.

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 81379
  • Thank you received: 13037
  • MODERATOR
8 years 4 months ago #221565

Hi,

Sure. Instead of overriding it, just change the name of the plugin to affiliate2 instead of affiliate (you have to change it in the xml and php files and their names too) so that the plugin is not updated when you update HikaShop.

Displaying the affiliate area button only for affiliates will also require the modification of the affiliate plugin code. You'll want to change the code in the function onUserAccountDisplay in order to load the data of the current user and only display the button based on whether the data indicates that the user is an affiliate or not.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum