original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Updates the cart items in the DB
  that have been modified since the last cart update
  
  @param array $goal
  @param array $itemsToUpdate
  
  @return void
docstring_tokens: Updates the cart items in the DB that have been modified since the last cart update