on ‎2018 Apr 20 1:13 AM
Hi, how can I retrieve the name of the active product catalog inside the method of my custom extension? I need to add a list of products inside a page based on which product catalogue is active. Thanks in advance
Federico
Request clarification before answering.
Hi
You can use the catalogVersionService to retrieve the active catalog inside your custom extension.
Please have a look at getSessionCatalogVersions() in DefaultCatalogVersionService class.
This returns a list of all of the catalog versions in the session. You can iterate through and check which version is active using the isActive attribute of the catalog versions thus obtained.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.