Move Category from one position to another using the move() method from the catalog module.
Function Definition from the interface Magento\Catalog\Api\CategoryManagementInterface, Continue reading “How to Move Category position programmatically in Magento 2?”
Get Category tree collection by the specific root category id Magento 2.
Magento has the interface to get the category tree by the Magento\Catalog\Api\CategoryManagementInterface with getTree() method. Continue reading “How to Get Category Tree Collection in Magento 2?”
Retrieve the category count total for the store in Magento 2 using the getCount() method.
If you require the number of category count for the Magento store, You can easily fetch that info by the Magento\Catalog\Api\CategoryManagementInterface. Continue reading “How to Get Category count in Magento 2?”