By default, the WooCommerce PDF Invoice/Packing Slip plugin allows document print provisions only for admin or users with access.
There can be instances where normal users, other than the admin, need provisions for printing documents. In that case, one can make use of the below-given code snippet to provide print access for respective users.
Go to Appearance > Editor > Theme Functions (functions.php) and insert the following code snippet.
‘WooCommerce PDF Invoice/Packing Slip’ plugin along with the above code snippet, will allow you to grant print permission for required user roles.
- Was this article helpful?
- Yes, thanks!Not really
August 1, 2022
How can i disable the print button in e-mail?
August 17, 2022
Go to Invoice/Packing > Invoice > General and uncheck the “Order email” option for “Show print invoice button for customers” to disable the print invoice button in the order status emails.
July 25, 2022
I have two users, both with the Administrator role. One user can see the PDF Packing Slip buttons on the Orders screen, one cannot. Does this code need to be added for Admin roles as well?
August 25, 2022
Currently, the print invoice buttons and other functionalities are available only for users with Woocommerce dashboard access. Kindly make sure that the other user has dashboard access. You can use the code snippet mentioned in this article to achieve that.
March 20, 2022
I would like to let a user profile that I have created in the plugin User Role Editor, handle orders by help of the plugin ‘WooCommerce Invoice/Packing slip’. The user role that I have created has the id kunde_rolle.
Can you help me with that ?
At the moment it is only the administrator who is able to do that.
Kind regards Thomas
March 23, 2022
Thanks for reaching out to us.
You can use the code snippet mentioned in the article to achieve that. Alter the
$role_arr='kunde_rolle';line in your case.