November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi!
There is no official way of doing this unfortunately. The Catalog UI is in need of a refresh if you ask me.
It should be possible to achieve it with a custom ViewConfiguration and some dojo/dijit code. Here is a pointer in the right direction:
First of all you will need to create a custom view configuration. It must have the same key as the default view. Here is an example:
[ServiceConfiguration(typeof(ViewConfiguration))]
public class CategoryViewConfiguration : ViewConfiguration<NodeContentBase>
{
public CategoryViewConfiguration()
{
Key = CommerceViewConfiguration.CatalogContentListViewName;
LanguagePath = "/commerce/contentediting/views/cataloglist";
ControllerType = "catalog-ui/CatalogContentList"; // The default ControllerType is epi-ecf-ui/widget/CatalogContentList. You have to create your own and inherit from default.
IconClass = "epi-iconList";
SortOrder = 250; // Needs to be lower than 300 which is used by the default configuration.
Category = CommerceViewConfiguration.CatalogCategory;
}
}
define([
'dojo/_base/declare',
'dojo/_base/lang',
'epi-ecf-ui/widget/CatalogContentList'
], function (declare, lang, CatalogContentList) {
return declare(
'catalog-ui/CatalogContentList',
[CatalogContentList], {
// Add new and/or override logic here
});
});
<?xml version="1.0" encoding="utf-8"?>
<module>
<clientResources />
<dojo>
<paths>
<add name="catalog-ui" path="catalog-ui/v1" />
</paths>
</dojo>
</module>
Hello, Is there a way out where we could display count of items/products under a category in commerce? Currently default view shows items in property view but we would like to make sure we have total count displayed in property view.
Here is the sample list where we would like to display count.