- Posts: 5
- Thank you received: 0
Will affiliates get created for their own purchase
- mail@quantumtouch.com
-
Topic Author
- Offline
Less
More
11 years 9 months ago #183312
by mail@quantumtouch.com
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.2.0
-- PHP version -- : 5.5.13
Can an affiliate use their own affiliate link to get credit for their own purchase?
-- Joomla version -- : 3.2.0
-- PHP version -- : 5.5.13
Can an affiliate use their own affiliate link to get credit for their own purchase?
Please Log in or Create an account to join the conversation.
11 years 9 months ago #183372
by nicolas
Replied by nicolas on topic Will affiliates get created for their own purchase
Yes.
Please Log in or Create an account to join the conversation.
- mail@quantumtouch.com
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
11 years 9 months ago #183491
by mail@quantumtouch.com
Replied by mail@quantumtouch.com on topic Will affiliates get credit for their own purchase
Can we stop this, we don't want affiliates to get credit for their own purchases?
Please Log in or Create an account to join the conversation.
11 years 9 months ago #183535
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Will affiliates get credit for their own purchase
Hi,
Yes it's possible.
In the plugin (plugins/system/hikashopaffiliation/hikashopaffiliation.php) please replace
By
I just submit same kind of patch for the next HikaShop release but where the default setting for the setting is "0" and not "1" (so the option won't be activated by default like here).
Regards,
Yes it's possible.
In the plugin (plugins/system/hikashopaffiliation/hikashopaffiliation.php) please replace
Code:
} else {
$partner_id = $order->order_partner_id;
}
$userClass = hikashop_get('class.user');
$user = $userClass->get($partner_id);
Code:
} else {
$partner_id = $order->order_partner_id;
}
$config = hikashop_config();
if($config->get('no_self_affiliation', 1) && $order->order_user_id == $partner_id)
return true;
$userClass = hikashop_get('class.user');
$user = $userClass->get($partner_id);
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Time to create page: 0.322 seconds