Support » Plugin: Woocom Role Based Reports » WooCommerce 4.0

  • Resolved paulwessiack

    (@paulwessiack)


    Hi Stephen!

    I really like your plugin “Role Based Reports” and use it to do the reports for our distribution groups.
    We just updated to WooCommerce 4.0 and the dialog-box from your plugin down not show up at WooCommerce reports any more πŸ™

    Do you plan to update your plugin so that it will work with WooCommerce 4.0.

    many thanks

    :: Paul

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author DBAR Productions

    (@dbar-productions)

    I haven’t looked at this for a long time, and don’t use it myself, so thanks for letting me know.

    I’ll take a look and see if it’s a simple change and fix. If they made a major change to how they do reports, I would probably need to create a whole new plugin for that.

    Plugin Author DBAR Productions

    (@dbar-productions)

    My role filter form is still there, but it’s hidden by their horrible new javascript wc-admin bar thing. So, I need to search for another hook that will allow me to put that select box somewhere lower down on the page.

    Thank you so much!!! You already fixed it πŸ™‚ I highly appreciate your support!!

    :: Paul

    • This reply was modified 10 months, 1 week ago by paulwessiack.
    Plugin Author DBAR Productions

    (@dbar-productions)

    You’re welcome. Would be easier if WooCommerce put some hooks in their reports html files so I can find a better location for my little form. Instead I have to use the WordPress admin footer hook to insert the form in the html of the page, and try to keep it visible. But, that should work for now.

    Hi Stephen!

    Works great for me πŸ™‚
    Thanks a lot for your super fast response!!

    greetings from Austria

    :: Paul

    ryans21

    (@ryans21)

    Hey Stephen,

    After the update to the plugin, I can see it on the bottom of the reporting page in the footer, but I am unable to click on the dropdown or the button.

    Do you know what might be causing this?

    Plugin Author DBAR Productions

    (@dbar-productions)

    Still working here with WC 4.0.1

    Can you use your browser to check the console to see if you are getting any weird javascript issues? My plugin actually doesn’t use any javascript at all… very simple PHP and html, but it may be possible that some javascript is disabling, or blocking, some inputs on your page? Do you have any type of plugin that modifies/themes the admin area?

    Maybe inspect the element in your browser to make sure the select box input actually has options for all the roles available on your site? If not, you may need to enable debug and see if there are any PHP errors when my plugin tries to get the array of roles from WordPress? That is a WordPress function, though, the get_editable_roles function… so, the only other thing I can think of is that another plugin on your site is tapping into the filter hook within that plugin and modifying which roles are editable (such as if you have a role/capability manager type plugin)?

    Thanks for the response. I’ll do some debugging today and see if I find anything out and get back to you.

    We do use a user role managing plugin, but its worked perfectly fine with your plugin until 4.0.

    AFter inspecting the element and checking the console for javascript errors, by process of elimination, I narrowed it down to a conflict with Gravity Forms for some reason, but not sure what the issue is beyond that.

    Are you familiar with Gravity Forms and does anything come to mind?

    Plugin Author DBAR Productions

    (@dbar-productions)

    I have a license for Gravity Forms. I’ll try installing it on my WooCommerce Dev site and see if I can reproduce the issue.

    Plugin Author DBAR Productions

    (@dbar-productions)

    OK… quickly installed Gravity Forms, latest version, and tried it with “No Conflict” mode both enabled and disabled, but did not experience any problems. Still can use my form on the WC reports page. I didn’t actually setup any forms, but it shouldn’t matter since no forms should be loading on that page.

    Do you have any of the Add-ons installed for your Gravity Forms? Maybe one of them is globally loading a script that is messing things up?

    I disabled all the addons for Gravity Forms and tested before disabling Gravity Forms itself and even then it was not working.

    Even stranger, I realized that after disabling Gravity Forms I could only click on your dropdown on my 4K monitor and not on my 1080p. I’ll keep messing with it and see if I come up with any answers.

    Plugin Author DBAR Productions

    (@dbar-productions)

    Is it because you can’t see the dropdown? Like it’s off the screen and you can’t scroll to it? Or is it somehow disabled?

    If it’s because clicking on it does nothing, can you inspect the element and see if something has modified the input to set the “disabled” or “readonly” attribute?

    Neither the dropdown or button are clickable at all. While checking for anything that modified the element to disabled or read-only, I found out that by disabling the margin on the div element it becomes clickable again. This is with Gravity Forms installed too.

    After that, I tried to just zoom out on the report page and that also worked. Not sure what about our specific setup is causing this, but at least we have a workaround for now!

    Plugin Author DBAR Productions

    (@dbar-productions)

    Yes, feel free to modify the embedded style in that wrapper div in the html-wcrbr-role-filter.php file. At least on the screens I tried it on, I had to put a negative top margin in there to move the form up to where you could see it, because the default WordPress install had a big bottom margin below the content area, so it would be off the bottom of the screen where you couldn’t see it. But, that still should only affect the positioning and “should” have no impact on if the dropdown and button are clickable — but maybe it was moved up into an area on your screen where other elements were on top of it (z plane) somehow that prevented clicking??

    It would be much better if WooCommerce had some filter or action hooks inside those reports to other plugins to add or modify things better, but they do not. And, since it’s not a page/post with content stored in the posts table, like on the public side, there are no built-in WordPress content filter hooks to allow you to modify the content section. On admin side, you only have the choice of adding something with the header/script hooks, or the footer hook. Previously, I had it in the header hooks, but now WC has that crappy javascript admin interface that sits on top of everything, so can’t put it there any more.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘WooCommerce 4.0’ is closed to new replies.