Helper/Data.php
public function updateAbandonedProductName($name, $email, $websiteId)
    {
        if ($this->isEnabled($websiteId)) {
            $client = $this->getWebsiteApiClient($websiteId);
            // id config data mapped
            $field = $this->getAbandonedProductName();

            if ($field) {
                $data[] = [
                    'Key' => $field,
                    'Value' => $name,
                ];
                //update data field for contact
                $client->updateContactDatafieldsByEmail($email, $data);
            }
        }
    }
public function updateAbandonedProductName($name, $email, $websiteId)
    {
        if ($this->isEnabled($websiteId)) {
            $client = $this->getWebsiteApiClient($websiteId);
            // id config data mapped
            $field = $this->getAbandonedProductName();

            if ($field) {
                $data[] = [
                    'Key' => $field,
                    'Value' => $name,
                ];
                //update data field for contact
                $client->updateContactDatafieldsByEmail($email, $data);
            }
        }
    }
public function updateAbandonedProductName ( $ name , $ email , $ websiteId ) { if ( $ this -> isEnabled ( $ websiteId ) ) { $ client = $ this -> getWebsiteApiClient ( $ websiteId ) ; // id config data mapped $ field = $ this -> getAbandonedProductName ( ) ; if ( $ field ) { $ data [ ] = [ 'Key' => $ field , 'Value' => $ name , ] ; //update data field for contact $ client -> updateContactDatafieldsByEmail ( $ email , $ data ) ; } } }
Api- update the product name most expensive.

@param string $name
@param string $email
@param int $websiteId

@return null
Api - update the product name most expensive .