Home > widget-integration > FilterController > initLegacyModule
FilterController.initLegacyModule() method
Initializes legacy modules for backward compatibility. Sets up dynamic bundles and volume bundles using the legacy API.
This method bridges the gap between the new filter controller architecture and older bundle implementations that haven't been fully refactored yet.
Signature:
initLegacyModule(): void;
Returns:
void
Remarks
This is maintained for backward compatibility with shops using legacy bundle configurations. New implementations should use the modernized bundle modules.
Example
Override to skip legacy modules for shops that don't need them:
window.boostWidgetIntegration.extend('FilterController', (FilterController) => {
return class CustomFilterController extends FilterController {
initLegacyModule() {
// Skip legacy initialization for modern shops
if (this.appService.TAEAppConfig.useLegacyBundles !== true) {
return;
}
super.initLegacyModule();
}
};
});