-
Notifications
You must be signed in to change notification settings - Fork 3
uStoreProvider services categories
- Categories
-
Represent the categories logic and API in the system
-
GUID :
string -
globally unique identifier
-
CategoryModel :
Object -
Provides information about a category of products.
-
CategoryListModel :
Object -
Provides a list of product categories according to the pagination.
-
SeoConfigurationModel :
Object -
Provides information about the SEO configuration of a category or product.
-
CategoryExtendedModel :
Object -
Provides information about a category, including additional data such as SEO configuration.
-
CategoryTreeNodeModel :
Object -
Node representation in a product category tree.
-
CategoryTreeModel :
Object -
Node representation in a product category tree.
Represent the categories logic and API in the system
Kind: global class
categories.loadCategoriesTree([depth]) ⇒ CategoryTreeModel
Set state.categories with the first level categories group.
Kind: instance method of Categories
Returns: CategoryTreeModel - - The tree of categories
| Param | Type | Default | Description |
|---|---|---|---|
| [depth] | number |
1 |
Indicates the maximum depth of the tree to return. By default (1), returns root categories only. |
categories.loadSubCategories(categoryFriendlyID, [pageNumber], [pageSize]) ⇒ Array.<CategoryModel>
Set state.subCategories with the sub-categories of the given category model as CategoryModel in the store, using paging.
Kind: instance method of Categories
Returns: Array.<CategoryModel> - Array of sub categories in a specific page
| Param | Type | Default | Description |
|---|---|---|---|
| categoryFriendlyID | string |
the category friendly ID | |
| [pageNumber] | number |
|
The 1-based number of the page. |
| [pageSize] | number |
|
The amount of the categories in one page. |
categories.loadCurrentCategory(categoryFriendlyID) ⇒ CategoryExtendedModel
Set state.currentCategory with the requested category by friendlyID using model CategoryExtendedModel
Kind: instance method of Categories
Returns: CategoryExtendedModel - - A category model
| Param | Type | Description |
|---|---|---|
| categoryFriendlyID | string |
the category friendly ID |
globally unique identifier
Provides information about a category of products.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| ID | GUID |
The unique ID of the category. |
| FriendlyID | number |
The friendly ID of the category. |
| Name | string |
The name of the category. |
| Description | string |
The description of the category. |
| HasProducts | boolean |
Indicates whether the category contains at least one online product. |
| HasSubCategories | boolean |
Indicates whether the category contains at least one sub-category, of any level, that has an online product. |
| ImageUrl | string |
The URL of the category image. |
Provides a list of product categories according to the pagination.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| Categories | Array.<CategoryModel> |
The list of the product categories according to the pagination. |
| Count | number |
The total number of product categories without pagination. |
Provides information about the SEO configuration of a category or product.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| Title | string |
The title of a webpage. |
| Description | string |
The description of a webpage. |
Provides information about a category, including additional data such as SEO configuration.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| SeoConfiguration | SeoConfigurationModel |
The SEO configuration. |
| ID | GUID |
The unique ID of the category. |
| FriendlyID | number |
The friendly ID of the category. |
| Name | string |
The name of the category. |
| Description | string |
The description of the category. |
| HasProducts | boolean |
Indicates whether the category contains at least one online product. |
| HasSubCategories | boolean |
Indicates whether the category contains at least one sub-category, of any level, that has an online product. |
| ImageUrl | string |
The URL of the category image. |
Node representation in a product category tree.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| Category | CategoryModel |
The product category of the node. |
| SubCategories | Array.<CategoryTreeNodeModel> |
The sub-categories (child nodes) of the node. |
Node representation in a product category tree.
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| Categories | CategoryTreeNodeModel |
The list of top level (root) categories. |
uStore NG Themes
uStore NG Extensibility
Theme customization overview
Editing CSS variables
Editing the CSS
Migration from Legacy to NG
Theme development overview
Getting started
Theme file structure
Publishing the theme
Upgrading a Custom Theme
Editing HTML content
Adding a new page
Adding assets
Adding a component
Customizing a skin
Modifying CSS variables
Editing fonts
Adding JavaScript
uStore library
Working with REST API
Accessing uStore data
Managing custom state
Working with localizations
General services
Adding an external package
Customizing the Theme Editor
Theme tips and tricks
uStoreProvider Reference
Tax Webhook
Order Approval Webhook
Manufacturer Webhook
Widgets
Cart Export Webhook
Input Control Development Guide
Using uStore as a web component