Hi @timbre-design,
Thank you for your reply.
Our developer has added a filter in our plugin and created the custom code to achieve your mentioned requirements.
The change related to the filter code is added in the “class-wcdn-print.php” file of our plugin which can be downloaded from the below link:
https://www.dropbox.com/scl/fi/a1ktvvu7fxgkwec2pjumf/class-wcdn-print.php?rlkey=ji0pbzp6rx0724hty7cz5trzk&st=z061dx51&dl=0
Kindly download this file and you need to replace the existing file with the provided one on the
below-mentioned path:
Path- wp-content\plugins\woocommerce-delivery-notes\includes\
Once you have replaced this file on your site, please add the custom code provided below to the “functions.php” file of your currently active theme.
add_filter( 'allow_user_email_order_access', 'allow_non_logged_in_user_order_access' );
/**
* Filter to allow non-logged-in users to access orders.
*
* @return bool Modified access permission.
*/
function allow_non_logged_in_user_order_access() {
return true; // Allow non-logged-in users to access everything.
}
Once you have added this custom code to your site, please check and let me know if the print link in the email is accessible to non-logged-in users. If the issue you mentioned above persists on your site even after adding this custom code, please email us at ‘support at tychesoftwares dot com’ so we can investigate the issue in detail and better assist you.