Affiliate User Can Not Approve Only Admin Can

  • Posts: 290
  • Thank you received: 5
  • Hikashop Business
3 weeks 1 day ago #365455

-- Joomla version -- : 5

HI,
Is there a way to only allow user to REQUEST to join as affiliate so I have more control over acceptance?

Charles

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

  • Posts: 83303
  • Thank you received: 13468
  • MODERATOR
3 weeks 1 day ago #365458

Hi,

There is no ready-made mechanism, but you can make one.

First, you want to turn off the "Add partner to user account during registration", "Add a 'become a partner' checkbox on the registration form" and "No self affiliation" settings of the HikaShop configuration:
www.hikashop.com/support/documentation/5...l#features_affiliate
That way, users won't be able to become affiliate partners by themselves.

Then, you can create one or several custom fields of the table "user" via the menu Display>Custom fields so that the user can request to join the affiliate program during his registration, and you can potentially ask extra questions to him if you need extra information to make your decision:
www.hikashop.com/support/documentation/4...shop-field-form.html

Then, you can create a mass action via the menu System>Mass actions:
www.hikashop.com/support/documentation/167-massaction-form.html
You can make it of the type "user" with a trigger "after a user is created" and a filter on the custom field where the user can choose to become an affiliate so that users that choose not to will be filtered out. Also, you can have an action "send an email" so that you'll be notified by email of the request to join the affiliate program.

Once you receive such a notification email, you can log in your backend, check what the user filled in the fields, and activate the affiliate setting for him.

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

  • Posts: 290
  • Thank you received: 5
  • Hikashop Business
3 weeks 1 day ago #365466

I think I am getting closer thanks to you.

However, I still see in the User Control Panel if I click Affiliate Tab that there is a button Yes or No for Affiliate Account Active even though I did not check the become affilite on my new created check box from custom view.

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

  • Posts: 83303
  • Thank you received: 13468
  • MODERATOR
3 weeks 11 hours ago #365471

Hi,

Right.
There are two ways to go about it for this:
- You can turn off the affiliate tab from the user control panel via the corresponding setting of the HikaShop Affiliate plugin via the Joomla plugins manager.
- You can edit the view file affiliate / show via the menu Display>Views and remove this piece of code:

						<tr>
							<td class="key">
								<label for="data[user][user_partner_activated]">
									<?php echo JText::_( 'AFFILIATE_ACCOUNT_ACTIVE' ); ?>
								</label>
							</td>
							<td>
								<?php echo JHTML::_('hikaselect.booleanlist', "data[user][user_partner_activated]" , '',1,JText::_('HIKASHOP_YES'),	JText::_('HIKASHOP_NO')	); ?>
							</td>
						</tr>
This will remove the option to activate / deactivate their affiliate account themselves from the affiliate page.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum