protected function updateEcommerceItems($goal, $itemsToUpdate)
{
if (empty($itemsToUpdate)) {
return;
}
Common::printDebug("Goal data used to update ecommerce items:");
Common::printDebug($goal);
foreach ($itemsToUpdate as $item) {
$newRow = $this->getItemRowEnriched($goal, $item);
Common::printDebug($newRow);
$this->getModel()->updateEcommerceItem($item['idorder_original_value'], $newRow);
}
}