What is the use of ifconfig tag inside the block tag in a layout xml file?
What purpose does it serve?
Magento 2 – Use of ifconfig Tag in Layout XML
default.xmllayoutmagento2
default.xmllayoutmagento2
What is the use of ifconfig tag inside the block tag in a layout xml file?
What purpose does it serve?
Best Answer
The use of ifconfig is for condition which is coming from system config values. The value of this will be 0 and 1(boolean). According to that value block will be rendered. e.g.
In this case if under system config custom_quickview/general/enable == 1 then only this block will be rendered else not.