Nicolas,
OK, I found the plugin and created a clone "myhikashopaffiliate.php" file.
I changed all references to 'hikashop_affiliate' to 'myhikashop_affiliate'.
I searched and the only partner 'key' code I could find was the code below in the onAfterRoute function.
$key_name = $this->params->get('partner_key_name', 'partner_id');
$partner_id = JRequest::getCmd($key_name,0);
I was thinking of changing this to:
$key_name = $this->params->get('my_partner_key_name', 'partner_id');
$partner_id = JRequest::getCmd($key_name,0);
But in your instructions (shown below), you indicated to make this change in the 'default plugin'. So should I make this change in the 'hikashopaffiliate.php' file or in my clone 'myhikashopaffiliate.php' file?
- I would change the partner key setting of the default plugin and change the cookie name in my custom affiliate plugin so that there is no interference between the too (I just keep the default one activated so that the affiliate feature is not disabled in the different places of HikaShop)
You indicated to create a new setting to map out the categories with a percentage. In looking at the code, I do not see any retrieval of the "hikashop_product_category" table where the cross-mapping is done for categories and products. Is this correct?