- Posts: 301
- Thank you received: 6
Affiliate User Can Not Approve Only Admin Can
1 year 7 months ago #365455
by fan4chevy
Affiliate User Can Not Approve Only Admin Can was created by fan4chevy
-- 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
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.
1 year 7 months ago #365458
by nicolas
Replied by nicolas on topic Affiliate User Can Not Approve Only Admin Can
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.
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.
1 year 7 months ago #365466
by fan4chevy
Replied by fan4chevy on topic Affiliate User Can Not Approve Only Admin Can
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.
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.
1 year 7 months ago #365471
by nicolas
Replied by nicolas on topic Affiliate User Can Not Approve Only Admin Can
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:
This will remove the option to activate / deactivate their affiliate account themselves from the affiliate page.
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:
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>
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds