Hi,
Thanks to replace the function "onProcessProductMassActiondeleteElements" in the file "your_site/plugins/hikashop/massaction_product" by:
function onProcessProductMassActiondeleteElements(&$elements,&$action,$k, $start = 0){
$ids = array();
$i = 0;
$productClass = hikashop_get('class.product');
foreach($elements as $element){
$nb = $i - $start;
if($nb >= 0 && $nb < 500){
$ids[] = $element->product_id;
$i++;
}elseif($nb >= 500){
$result = $productClass->delete($ids);
$start = $start + 500;
$this->onProcessProductMassActiondeleteElements($elements,$action,$k, $start);
}
}
}
This will delete all the product 500 per 500.