Magento – Widget.xml depends on multi value

widgetxml

There are some post to discuss depends on multi-value for system.xml, (https://magento.stackexchange.com/questions/9935/system-xml-field-dependency)

Below example come from Magento Core Code(app/code/core/Mage/Payment/etc/system.xml

<depends>
    <order_status separator=",">processing,processed_ogone</order_status>
</depends>

I have tested this feature for system.xml, it works, but it is not work for widget.xml can anyone tell me how to do "depends on multi-value" for widget.xml?

Best Answer

I know this is old but I stumbled on the same problem and here's a solution :

            <depends>
                <order_status>
                    <values>
                        <value1>processing</value1>
                        <value2>processed_ogone</value2>
                    </values>
                </order_status>
            </depends>

I hope this can help someone.

Related Topic