No worries although in the new file that I am editing I am not sure what to edit.
From the suggestion that Xavier mentioned
I have
function updatecart(){
hikashop_nocache();
if(hikashop_loadUser() == null){
$app->enqueueMessage(JText::_('LOGIN_REQUIRED_FOR_WISHLISTS'));
$app->redirect( str_replace('&popup=1','',$_SERVER['HTTP_REFERER']));
}else{
// default code
with a closing bracket ending right before the download function.
}
function download() {
$file_id = JRequest::getInt('file_id');
if(!$file_id){ return false; }
$fileClass = hikashop_get('class.file');
$fileClass->download($file_id);
return true;
}
}
Is that right? if so when I click on wishlist i get blank page of domain.com/product/updatecart. If not can you reply the way the code should look?