Helper/Data.php
public function updateLastQuoteId($quoteId, $email, $websiteId)
    {
        if ($this->isEnabled($websiteId)) {
            $client = $this->getWebsiteApiClient($websiteId);
            //last quote id config data mapped
            $quoteIdField = $this->getLastQuoteId();

            $data[] = [
                'Key' => $quoteIdField,
                'Value' => $quoteId,
            ];
            //update datafields for conctact
            $client->updateContactDatafieldsByEmail($email, $data);
        }
    }
public function updateLastQuoteId($quoteId, $email, $websiteId)
    {
        if ($this->isEnabled($websiteId)) {
            $client = $this->getWebsiteApiClient($websiteId);
            //last quote id config data mapped
            $quoteIdField = $this->getLastQuoteId();

            $data[] = [
                'Key' => $quoteIdField,
                'Value' => $quoteId,
            ];
            //update datafields for conctact
            $client->updateContactDatafieldsByEmail($email, $data);
        }
    }
public function updateLastQuoteId ( $ quoteId , $ email , $ websiteId ) { if ( $ this -> isEnabled ( $ websiteId ) ) { $ client = $ this -> getWebsiteApiClient ( $ websiteId ) ; //last quote id config data mapped $ quoteIdField = $ this -> getLastQuoteId ( ) ; $ data [ ] = [ 'Key' => $ quoteIdField , 'Value' => $ quoteId , ] ; //update datafields for conctact $ client -> updateContactDatafieldsByEmail ( $ email , $ data ) ; } }
Update last quote id datafield.

@param int $quoteId
@param string $email
@param int $websiteId

@return null
Update last quote id datafield .