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);
        }
    }
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);
        }
    }
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 ) ; } }
Updates the cart items in the DB
that have been modified since the last cart update

@param array $goal
@param array $itemsToUpdate

@return void
Updates the cart items in the DB that have been modified since the last cart update