November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
It is not possible. What would you want to show in a catalog page? There is nothing prevent you from returning a CMS view in your catalog controller
Thanks for your response Quan.
I was hoping to use it for a primary category listing. Ideally our catalog will sit at /products and have urls like /products/cat1, /products/cat1/some-product etc. We had planned to use the url /products to list out the top level categories.
I'll go for the controller route instead and define the content for it elsewhere.
Cheers
Tom
I think it makes perfect sense to display all top level categories on such a page. The idea is that any segment in the url should be routable.
It can easily be achieved by creating a controller of type ContentController<CatalogContent>. From there you can build any model of your choice, but as you've already found out - should you require additional properties on the catalog you will need to store them elsewhere.
Is it possible to have a page view/model for the catalog in Commerce?
The documentation here specifically states to not inherit from CatalogContent because "they only exist to show various states in the system".
I've attempted to connect the content type to the metaclass using the [CatalogContentType ( MetaClassName = "Catalog")], but that didn't appear to work.
Has anyone managed to do this? Or got any pointers on how to achieve this?