Hi,
It is something we can add into the next HikaSerial release.
In the "serialmarket/view.html.php" file, at the end of the export function, just before the query is made, it it possible to add such content
JPluginHelper::importPlugin('hikashop');
JPluginHelper::importPlugin('hikaserial');
JPluginHelper::importPlugin('hikamarket');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onBeforeMarketSerialExport', array($pack_id, $product_id, $target_vendor_id, &$select, &$tables, &$filters));
So you will have a trigger that you can use in a plugin.
Please note that it will also require some modifications int the function to provide "named" array.
Like replacing
$select = array(
'serial.serial_data',
'serial.serial_status'
);
By
$select = array(
'serial_data' => 'serial.serial_data',
'serial_status' => 'serial.serial_status'
);
So in the plugin you check easily the different elements, knowing which table is already link, etc.
Regards,