My extension is written as follows: define('Accou...
# suitecommerce
m
My extension is written as follows: define('Account.Model.Extension' , [ 'Account.Model' , 'underscore' ] , function ( AccountModel , _ ) { 'use strict'; _.extend(AccountModel.Prototype, { register: function(customer, user_data) { ... // My extension for register function here. } }); } );
p
_.extend(AccountModel.Prototype, this is the offending line if this was a backbone model, it would have been AccountModel.prototype (lowercase p). But in backend models, it's not prototype so in this case it is: _.extend(AccountModel, ....
o
Man you’re quick Pablo! Was in the process of replying haha
πŸ˜‚ 1
m
Great, thanks @PabloZ πŸ™‚ I'll give that a try.
That was fast, I was about to get lunch and come back to check. πŸ˜ƒ
It worked! Thanks again πŸ™
p
🀘🏽