I’m currently building a multivendor marketplace using Elementor and Crocoblock. I’m not a very experienced developer so any code work I outsource to freelance devs.
What I want to achieve is creating a an affiliate programme where any user of the site can receive commission on any sales they promote through their own affiliate link.
I’m trying to form the plan in my mind but finding it difficult so any advice or thoughts would be appreciated.
I know it will need some custom code work but how should I start? And how best to build it/set it up?
I thought maybe create a new user type for affiliates that their account becomes when they sign up and this creates their personal affiliate link. Is this the right way to go about it? Then how does my site know that a user is buying after following an affiliate link?
Any thoughts or advice would be amazing!
Thanks in advance.

If you literally have no idea, then google ‘wordpress affiliate plugin’ and read some of the FAQs and help pages there. It’s what they’re for. Once you have some thoughts on how you might build the site… then come here and get ‘unbiased’ thoughts on plugins or whatever.