1

In Magento version (less than 2.0.5) sales_order_grid.xml is like

<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <container name="listing_top">...</container>

but in Higher version (above 2.0.6) its like

<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <listingToolbar name="listing_top">...</listingToolbar>

Now I am facing cross version issue in my custom module. I cannot even use ifconfig here bcoz of a ui_component XML file.

Any suggestions? It's urgent!

  • Where u want to use if condition? – Ankit Shah Mar 17 '17 at 7:24
  • I want to create functionality like if magento version is Leass than 2.0.6 then it will call <listing xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <container name="listing_top">...</container> @Ankit Shah – Shubham Mathur Mar 17 '17 at 7:29
  • What happens when u upgrade to latest 2.1.5? – Ankit Shah Mar 17 '17 at 7:31
  • I was thinking if there is any functionality through which I can manage both using if condition or something – Shubham Mathur Mar 17 '17 at 7:32
  • It's clear in higher version its "listingToolbar" tag is defined and in lower version "container" tag is defined which is creating problem because when i run it on 2.1 its work with <listingToolbar> tag & in lower with <container> tag – Shubham Mathur Mar 17 '17 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.