Assigning Default Catalog To User:
Environment: ATG10.0.2
Requirement: Displaying default catalog to the anonymous user/Logged in user.
Intended User: ATG Learner, Junior Developer
ATG10 doesn’t assign any default catalog to the customer by default, As a developer you need to assign default catalog to the user.
Steps to configure:
1. Create /atg/commerce/catalog/CatalogTools component in your module
2. Add defaultCatalogId property with default catalogeId. (Ex:catalog12345)
3. Create /atg/commerce/util/ContextValueRetriever component in your module
4. Add useProfile property with true
5. Assemble your ear ,Deploy and start the server
6. Open dyd/admin
7. Check your changes for the above components.
8. You should see your changes instead of default values.
9. Now you can access pages.