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 Check html minify enable programmatically Magento 2?

Magento 2 has native feature to enable html Minify from the Configuration setting in the admin panel.

Html Minification is not applied in developer mode.

To Minify html in Magento 2 via admin panel,
Go To Admin panel,
Click Stores -> Settings -> Configuration,
Select Advanced -> Developer Tab,
Open Template Settings section,
Html minify set to Yes,
Click on Save Config. Continue reading “How to Check html minify enable programmatically Magento 2?”

How to check is CSS merge enabled programmatically Magento 2?

Check CSS Merge is enabled or not using Magento 2 by isMergeCssFiles() method.

To Merge CSS files in Magento 2 via admin panel,
Go To Admin panel,
Click Stores -> Settings -> Configuration from the left sidebar.
Click on Advanced -> Select Developer Tab,
Open the CSS Settings section,
Choose Yes from the Merge CSS Files.
Click on Save Config from the top right. Continue reading “How to check is CSS merge enabled programmatically Magento 2?”