Get Sub Category (Child category) Collection details by the Parent Category id in Magento 2.
Using Parent Category Id, You can explore all the children category with deep level Or You can retrieve id by Current Category
When you check the Magento Open source sample data, You can see Men Category has direct two-child categories, Tops, and Bottoms at level 3 and both have other subcategories (Jacket, Tees, Pants, Shorts, etc) at level 4. Continue reading “How to get Sub Category details by parent id Magento 2?”
From Magento 2.3.4, Custom Layout Update Textarea removed from the admin panel category edit page, product edit page and cms edit page to remove the opportunity of Remote Code Execution (RCE). Replace Textarea with a selector.
Earlier you can add directly XML code snippet for the specific entity from the backend but from Magento 2.3.4 new feature was added. You need to create an XML file in your theme or module level and assign an XML file to the Custom Layout Update selector. Continue reading “How to add Category Custom Layout Update XML file in Magento 2.3.4?”
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?”