How to add custom filed data Into the profile model

we need to Update the modules,ssp-libraries : dependencies,

define('UserCustomFields'
, [
    'Profile.Model'
  , 'SC.Models.Init'
  ]
, function
  (
    ProfileModel
  , ModelsInit
  )
{
  'use strict';

  ProfileModel.get = _.wrap(ProfileModel.get, function (fn)
  {
    var profile = fn.apply(this, _.toArray(arguments).slice(1));
    profile.customfields = ModelsInit.customer.getCustomFields();

    return profile;
  });
});

Leave a comment

Your email address will not be published. Required fields are marked *