Hi All, can we use overrides in SC 20.2.0?
# suitecommerce
g
Hi All, can we use overrides in SC 20.2.0?
s
What kind of overrides?
g
AddressDetailsView.prototype.template=sampletpl;
like this
s
No, that's not supported
m
I guess using
.call()
or
.apply()
under your constructor function.
s
It's not about the mechanics of it, it's the fact she wants to extend Address.Details.View, which is a core code class not exposed to the extensibility API
m
Than what alternatives does the extensibility provides if we want to use the core functionality without reinventing the wheel?
s
Your question is valid but, just to be clear, that does not characterise what she is trying to do, right?
She wants to modify the base class in such a way that it will change the behaviour of every address view throughout the site, and that is not something we allow for SuiteCommerce (if you want to do it in SCA, go for it)
m
No I'm just curious to know about the in-depth details 🙂
s
But if your question is something along the lines of "we want to reuse the address modules to display an address form" then yeah, you kinda need to re-implement it yourself. If there is something you feel like could be abstracted into the extensibility API, then you should raise an enhancement request