Hi Michal,
Thank you for reaching out to us!
Yes, it’s possible to disable the invoice and address label functions while keeping only the packing slip feature. You can achieve this by using the following code snippet:
// Hook to filter the buttons array and remove Invoice and Delivery Address buttons
add_filter('wpifw_order_buttons_array', 'remove_invoice_and_delivery_buttons');
function remove_invoice_and_delivery_buttons($buttons) {
// Remove the Invoice button
if (isset($buttons['Invoice'])) {
unset($buttons['Invoice']);
}
// Remove the Delivery Address button
if (isset($buttons['Delivery Address'])) {
unset($buttons['Delivery Address']);
}
return $buttons;
}
You can add this snippet to your theme’s functions.php
file or use a code snippet plugin to apply it. This will hide the Invoice and Delivery Address buttons from your order page, keeping only the packing slip feature visible.
If you need any further assistance, feel free to contact us.
Best regards,
HI,
Thank you for checking. Unfortunately this snippet did not work. I have tried it and still all the buttons are visible as before on the orders page and in order details on backend.
Screenshot.
https://ibb.co/wNgNNQV
https://ibb.co/NCjMc5s
Kind regards.
Hi,
Could you please confirm which version you are currently using? If you are using an older version, please update the plugin to the latest version.
Hi,
I am using the most updated Version 3.7.38.
I have re-entered the snipped and now the extra options have dissapeared.
Looks like it is solved now
Kind regards
Hello Michal,
Thank you for the update! We’re glad to hear that the solution resolved your issue.
If you have a moment, we would appreciate it if you could share your experience by leaving a review on the plugin. Your feedback helps us continue to improve and assists other users.
Please don’t hesitate to reach out if you have any more questions.