hmmm nope I am sure I am putting it correctly. I am using die(); at function updateEntry.
for example
function updateEntry($quantity,&$cartContent,$product_id,$add,$resetCartWhenUpdate=true,$type='product',$force=false){
echo "ok";
die();
.
.
.
but it seems that when die occurs it redirects me to option=com_hikashop&ctrl=product&task=listing&Itemid=87
hint could be that if i put some code that produces an error for example
function updateEntry($quantity,&$cartContent,$product_id,$add,$resetCartWhenUpdate=true,$type='product',$force=false){
dfsasadsadas
.
.
.
the "dfsasadsadas" will be the error, it will not redirect me but crash. So there is no Try catch at the top of the hierarchy. Weird.. any hints? its like breaking and returning when the die happens.