We are in the process of migrating users from Web Interface to Storefront. We have identified a potential issue; new users are directed to the “Favourites” view which doesn’t have any applications be default, instead it has instructions on how to add apps to the favourites view.

New users might say, “Where did my apps go?!”
The concern is users may become confused because Web Interface shows all your applications, and this new view shows none. What we want to do to solve this is default to the “Store” view if you have no favourite apps, and default to the favourites view if you have at least 1 app favourite.
We can do this.
1 2 3 4 5 6 |
CTXS.Extensions.afterDisplayHomeScreen = function (callback) { /* If the user has no favorited apps, set the view to the category view */ if (CTXS.Store.getMyApps().length == 0) { CTXS.ExtensionAPI.changeView("store") } }; |
Just add the code above to your custom.js file and the default view will be changed to the store if you have no favorited apps. Done!
Pingback: Detailed Change Log – Carl Stalhood
Pingback: StoreFront 3.5 through 3.13 – Basic Configuration – Carl Stalhood