• Hi there,

    I’m a developer of the plugin ‘Admin Columns’ which makes it possible to add, remove or re-order column to the WordPress Admin overview pages. This also makes it possible to alter the WooCommerce overview pages, including the WooCommerce order overview page.

    When you remove the ‘Order’ column from this overview page, there is a JS error when clicking a row in this overview to open the the order edit screen.
    Cannot read property 'length' of undefined in the method onRowClick().

    I understand that the ‘Order’ column is essential for this overview to make this ‘click on row’ functionality work, but it would be great if you can make a fix in the JS so that there will be no JS eror when the column is not available. Of course the click on row functionality does not have to work in this case.

    Customers can get this functionality back by re-adding your ‘order’ column or by adding a custom column from us that leads them to the ‘edit order’ page.

    This is how you can reproduce the issue:
    1) Install Admin Columns
    2) Go to the Orders overview and click on the ‘edit columns’ button
    3) Now remove the ‘Order’ column and click on save/update on the right
    4) Go to the overview again and click on a row. This should result in the JS error

    Of course, you could also remove the order column in your own code or by using the WordPress hook to add the columns in the first place. Please let me know if you need anymore information or help.

  • The topic ‘Orders overview page give JS error when ‘Order’ Column is missing’ is closed to new replies.