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 invalidate Full Page Catch type in Magento 2?

You can invalidate the full_page catch 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 invalidate Full Page Catch type in Magento 2?”

How to Create Custom Offline Payment Method using Standard way in Magento 2?

Create a Custom Offline Payment gateway in Magento 2 without the use of AbstractModel.

Using class Magento\Payment\Model\Method\Adapter with virtualType to make it compatible with the latest Magento standard practice to create a payment method.

For the offline Payment method with the configuration setting from the admin panel, you can enable/disable the payment method with the Payment method title. We will create a simple Purchase Order Payment method. Continue reading “How to Create Custom Offline Payment Method using Standard way in Magento 2?”