• Resolved loopforever

    (@loopforever)


    Hello,
    Thank you very much for the plugin. A very useful plugin.
    I have a question I want to ask. I want to remove Order Details in Packing Slip PDF. Is there a way to this? (Except override the file)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hello @loopforever,

    That’s possible. Which field(s) are you trying to hide? All? The most likely option is that we’ll use a CSS code snippet to hide the relevant information.

    • This reply was modified 3 years, 6 months ago by Darren Peyou.
    Plugin Contributor Darren Peyou

    (@dpeyou)

    @loopforever to be clear, by “all” I meant to ask about all the data below the shop address but above the product details table?

    Thread Starter loopforever

    (@loopforever)

    Hello again,
    Yes, I was thinking of removing the whole table. CSS came to mind but I was looking for another solution. Again, the best solution is to modify the file. This is how I handled it. Thank you for your interest.

    Also a suggestion:
    It would be perfect if you bring a feature to the plugin for Dokan. It may even be premium. I am pleased. Because you are interested in the plugin.
    Thank you.

    • This reply was modified 3 years, 6 months ago by loopforever.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @loopforever,

    Yes, I was thinking of removing the whole table. CSS came to mind but I was looking for another solution.

    To remove the order data table from packing slips, you can indeed use CSS. Please add this code snippet to your site to do so:

    /**
     * Hide the order data table
     */
    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
    	if ( $document_type == 'packing-slip' ) {
    		?>
    		td.order-data {
    			display: none;
    		}
    		<?php
    	}
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Also a suggestion: It would be perfect if you bring a feature to the plugin for Dokan. It may even be premium. I am pleased. Because you are interested in the plugin.

    In fact, our plugin is already compatible with Dokan. You just need to install their Dokan Invoice extension to add your sellers’ info on the invoice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Order Details in Packing Slip’ is closed to new replies.