When a vendor is trying to add staff on my website, clicking the button nothing happens. When I check the console, each time the button is clicked it triggers the following error:
ReferenceError: woocommerce_params is not defined
This refers to wcmp-sub_vendor/assets/frontend/js/frontend.js:79
As far as I can see, this failure happens when the plugin tries to find the Woocommerce ajax URL on line 79 of the frontend.js file. Any idea how to fix this, because as of now I am unable to add any vendor staff?
Ok, so now I added the ‘woocommerce’ body class to the frontend dashboard pages, which seems to have gotten me a little bit further. Now when the button to add the staff member is clicked, the page goes opaque and the mouse pointer turns into a spinner, so it is trying to load.
However, I still get the woocommerce_params is not defined error, and now there is a new one: