Hi, I am customising store locator page in SCA 201...
# suitecommerce
p
Hi, I am customising store locator page in SCA 2019.2. I wanted to confirm the feasibility of using extensibility api for this customisation. Because there is no component for store locator. I'll have to use the layout component. Should I proceed with extensibility api or use the conventional extension method used in pre aconcagua versions.
s
Generally speaking, you should use the extensibility API as much as possible
p
So I should customise store locator using layout component? Also what if I want to change a function in SCA source?
s
So I should customise store locator using layout component?
Yes, why not?
Also what if I want to change a function in SCA source?
Then just change it using non-API methods.
p
If we want to create a plugin for store locator, then the non api methods can cause a problem in exporting the extension to another project, right?
s
Well yes, this is the nature of the extensibility API versus 'traditional' customisation methods. The API ensures a high level of interoperability; traditional methods do not
If you're customising a site you own then you can take more risks. And if you're going to lock the version of that site (eg use SCA) then you can take even more risks. But customising someone else's SuiteCommerce site (which is always updated and out of your control) should be approached with a lot more caution.
p
We want this extension to be distributable, so we definitely cannot use the traditional method. I was thinking of removing the source store locator from distro and then using the same code and our customisations to create an extension using extensibility api. What do you suggest?
s
Er, well that could be a violation of our copyright as you would be copying and distributing our source code, so I would probably get a lawyer to check whether that's OK first. Second of all, I don't see how you could apply that to, say, a SuiteCommerce site, which does not allow for the modification of distro.json.
p
Okay I'll think of some other workaround that does not violate copyrights