• Resolved callachic

    (@callachic)


    Hi,

    What’s the function or content of “Order Additional”?

    Can I remove section “Order Additional” that always appear after the item details & totals (and above footer). It’s just showing “Order Additional” and “Label Value” with no content. I believe this is caused by “Woocommerce Checkout Manager” that I used, because if I deactivate this plugin, the order additional text is gone. However I need to use this plugin.

    Is there anyway I can remove this part from the invoice using code? (Preferably not touching the “invoice.php” included in your plugin.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @callachic

    What are your field settings on that other plugin? Can you show me a screen?

    Thread Starter callachic

    (@callachic)

    Hi @alexmigf

    Not sure how to put a screenshot here. But i’ve uploaded screenshot here:

    https://www.dropbox.com/s/yxrjob85fn6dyar/screen1.jpg?dl=0
    Above is the additional settings from the WooCommerce Checkout Manager that I use (basically I don’t have any additional custom field)

    https://www.dropbox.com/s/xv5zlaa6i1gsmcb/screen2.jpg?dl=0
    And above is the resulted invoice. The one circle in red always shown (though there’s no additional field).

    The only way I can make it disappear is:
    1. Disable the Woocommerce Checkout Manager (but I actually need to use this plugin), OR
    2. Comment the following line from invoice.php included in your plugin:
    <?php do_action( ‘wpo_wcpdf_after_order_details’, $this->type, $this->order ); ?>

    Is there anyway I remove this using code in my function.php file? I prefer not to touch your invoice.php as it’ll be overwritten if there’s update to the plugin..

    Thank you again!

    Plugin Contributor Ewout

    (@pomegranate)

    @callachic the “Order Additional” label is (I think) not referring to the “Additional” section, but a billing or shipping field with that name that you added. You’ll need to contact support for Woocommerce Checkout Manager to find out how to disable displaying this on the invoice… That appears to be a paid feature, I found this in the free Woocommerce Checkout Manager settings:

    As for editing the template files and keeping those edits safe from updates, check this guide: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/creating-a-custom-pdf-template/

    • This reply was modified 4 years, 5 months ago by Ewout. Reason: added remark about custom templates
    Thread Starter callachic

    (@callachic)

    I see.. Ok thanks for your help. I’ll try to contact their support for this =)

    Ahoi.

    Had to come and chip in, I have this EXACT problem and it will not go away with Themehigh’s Checkout Manager Pro. Not even if you hide all custom fields from invoices, it just prints those things we see as default.

    I haxed my way around this with CSS in the Pro version of Ewout’s PDF Pro;

    1. Go to “Customizer” in Ewout’s plugin’s settings
    2. Look down to see “Custom Styles”
    3. Use code below (note that it might nuke something in your PDF template, as it targets by CSS classes / HTML tags)

    h2, th.quantity, th.product {
    visibility: hidden
    }
    .order-details th.quantity {
    visibility: visible
    }

    Why the second part? Well, the table heading .quantity is a standard in both Themehigh’s and Ewout’s plugins and there is no better way to match Themehigh’s php output, so after making the unwanted stuff disappear, you have to target Ewout’s PDF fields to make them visible ??

    Hacky solution, I know, but that’s what the entire software field is xD

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Remove “Order Additional” that keeps appearing in invoice’ is closed to new replies.