Hi,
The affiliate id is available in the cookies.
So JEvents can already access it like that:
Code:
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
echo hikashop_decode(JRequest::getCmd('hikashop_affiliate', 0, 'cookie'), 'partner');