• Resolved DensitySK

    (@densitysk)


    Hi,

    I use your plugin to generate packing slip to use it in my warehouse and then stick the A5 label onto the package to make address and content visible (but not prices or other unnecessary information).

    I already have a separate plugin that creates real VAT invoices and is connected to my accounting.

    Is there a way to disable the invoice and address label function specifically and keep only the packing slip function available?

    That would help me have a cleaner interface and not clutter it with functions that I do not use

    https://ibb.co/DK1B392

    Thank you for checking

    Kind regards

    Michal

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Ahmed Imran

    (@ahmedimran)

    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,

    Thread Starter DensitySK

    (@densitysk)

    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.

    Plugin Support Ahmed Imran

    (@ahmedimran)

    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.

    Thread Starter DensitySK

    (@densitysk)

    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

    Plugin Support Ahmed Imran

    (@ahmedimran)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.