Re: Support from your forums
-
I was trying to restrict a role from accessing the refund ability, and found this post: https://www.role-editor.com/forums/topic/restrict-role-from-processing-refunds-in-woocommerce/
Which was great, I just wanted to say it isn’t complete. If the user adds products and saves, the ajax request refreshes the ‘refund’ button comes back.
Adding this to your final function solved it:
jQuery( document ).ajaxComplete(function() { jQuery('.refund-items').css("display","none");})
I couldn’t comment on your forums, but it may be of use to someone.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Re: Support from your forums’ is closed to new replies.