Skip to main content
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

Can anybody tell how to move block in Magento2 using observer or maybe other class without using "move" tag in layout xml.

I know about this method in layout, but I can not use it.

<move element="name" destination="to" before="-"/>

In my case "move" depends on 2 store config values.

And YES, I saw this: Magento 2 - Move block or container only for specific DeviceMagento 2 - Move block or container only for specific Device

Thank

Can anybody tell how to move block in Magento2 using observer or maybe other class without using "move" tag in layout xml.

I know about this method in layout, but I can not use it.

<move element="name" destination="to" before="-"/>

In my case "move" depends on 2 store config values.

And YES, I saw this: Magento 2 - Move block or container only for specific Device

Thank

Can anybody tell how to move block in Magento2 using observer or maybe other class without using "move" tag in layout xml.

I know about this method in layout, but I can not use it.

<move element="name" destination="to" before="-"/>

In my case "move" depends on 2 store config values.

And YES, I saw this: Magento 2 - Move block or container only for specific Device

Thank

Source Link
lemk0
  • 608
  • 5
  • 9

Move block in Magento 2 without xml

Can anybody tell how to move block in Magento2 using observer or maybe other class without using "move" tag in layout xml.

I know about this method in layout, but I can not use it.

<move element="name" destination="to" before="-"/>

In my case "move" depends on 2 store config values.

And YES, I saw this: Magento 2 - Move block or container only for specific Device

Thank