Hi,
I was able to reproduce the issue.
in media/com_hikashop/js/hikashop.js
Try changing the code
var varform = document[form];
to:
var varform = null;
if(typeof(form) == 'object' && form.form)
varform = form.form;
else if(typeof(form) == 'string')
varform = document[form];
in the file "quantity" of the view "product" via the menu display>Views.
Replace :
$formName = ',hikashop_product_form';
$cleanFormName = str_replace(array('\'',','),'',$formName);
$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
to
$formName = ',\'hikashop_product_form\'';
$cleanFormName = str_replace(array('\'',','),'',$formName);
$module_id = $this->params->get('from_module', 0);
$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ var typeField = document.getElementById(\'hikashop_cart_type_'.$this->row->product_id.'_'.$module_id.'\'); if(!typeField){typeField = document.getElementById(\'cart_type\'); } if(typeField){typeField.value = \'wishlist\'; console.log(typeField); } return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
and the code:
$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
to:
$wishlistAjax = 'if(hikashopCheckChangeForm(\'item\',this)){ return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
That makes it work properly on my end.