How to get Sub Category details by parent id Magento 2?

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?”

How to update cart total summary section using js Magento 2?

You can reload or update cart total summary sidebar section in Magento by using Magento_Checkout/js/action/get-totals file.

A get-totals.js file used to reload a cart summary block on the cart page. Continue reading “How to update cart total summary section using js Magento 2?”

How to invalidated Specific Catch type in Magento 2?

You can invalidate the specific catch type in Magento 2 using invalidate() method from the TypeListInterface.

In some cases you need to invalidate the catch after some event or trigger on the code, you need to do it via passing cache type code as a string or pass multiple catch type list using an array.

Let’s we have to invalidate the full_page cache programmatically, First see the base definition of the method,
Continue reading “How to invalidated Specific Catch type in Magento 2?”