foreach($data as $price) {
$id = $price->getProductId()->getEndpoint();
if (!empty($id)) {
list($productId, $combiId) = array_pad(explode('_', $id, 2), 2, 0);
if (!empty($productId) && !is_null($combiId)) {
$this->db->execute('
DELETE p FROM '._DB_PREFIX_.'specific_price p
WHERE p.id_product = '.$productId.'
AND p.id_product_attribute = '.$combiId.'
AND p.from = "0000-00-00 00:00:00"
');
}
}
}