Hi,
It's that code which calls the display of the popup when the "Use AJAX when possible for add to cart buttons" setting of the HikaShop configuration is turned on:
$popupJs = '
if(cart_type == "wishlist"){
SqueezeBox.fromElement("hikashop_notice_wishlist_box_trigger_link",{parse: "rel"});
} else {
SqueezeBox.fromElement("hikashop_notice_box_trigger_link",{parse: "rel"});
}
';
There, you would have to add javascript code to modify the URL of the a tag with the id "hikashop_notice_box_trigger_link" and add the product id to it.
When the option is turned off, it's a bit more complex. You need to first add the product id as a parameter in the redirection javascript:
$js = 'window.location = \''.urldecode($url).'\';';
in the same file. Then, you would have to change the line:
SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'});
in components/com_hikashop/views/product/view.html.php to add the parameter to the hikashop_notice_box_trigger_link a tag.