I managed to installed Sitecore Habitat Home Commerce (9.0.2) and trying to extend some of the functionalities. I will need to customise checkout billing page to fit the requirement.
There are few questions I would like to check with the community after spending hours in researching how Commerce SXA components were implemented by Habitat Home Commerce demo.
I came across this section when viewing the showconfig and notice that we are required to register commerce models and js files in the config file.
<commerce.XA>
<javascripts>...</javascripts>
<models>...</models>
</commerce.XA>
As for the registered Commerce SXA js files, can I assume Sitecore Commerce SXA module will include them in the page when rendering a Commrece SXA page? If it is not registered, Commerce SXA will not load them.
If that's the case for js files, but why do we need the Commerce models being registered?