Hi,
There is already the code to check that the cart is not empty before sending a reminder notification for it with the code:
// skip cart if the cart has no products
$this->db->setQuery('SELECT * FROM #__hikashop_cart_product WHERE cart_id = '.$cart->cart_id);
$products = $this->db->loadObjectList();
if(empty($products))
return false;
$hasProducts = false;
foreach($products as $p) {
if($p->cart_product_quantity>0) {
$hasProducts = true;
break;
}
}
if(!$hasProducts)
return false;
in the file plugins/hikashop/reminder/reminder.php of the reminder plugin.
So I'm surprised you're saying this.