Advantages of registerView() Instead of addChildView()?

The main benefit of the registerView() method is that it lets you separate the JavaScript for your Commerce website from your site’s templates. For example, if a developer creates a widget using addChildView() and writes the widget so that it renders on the home page, a designer can add the new widget to a home… Continue reading Advantages of registerView() Instead of addChildView()?

Make a View Available Anywhere in Your Templates

The registerView() method allows you to register a view to a component, making the view available anywhere that component is available. This functionality makes it easier to use simple views in any template in your theme. You should not use the registerView() method for every view, but instead use it: For views that are self contained and do not… Continue reading Make a View Available Anywhere in Your Templates