• Resolved zweihochvier

    (@zweihochvier)


    Hello,

    thank you for your great plugin. Everything works well and I’m really happy.
    I use the invoice part of the plugin. And I have one thing I want to change.
    I want to disable the barcode, because i don’t need it. But i didn’t find anything at all.

    Can you help me?
    Kind regards,

    Katja

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Katja,
    Our plugin does not print any barcodes… Are you by any chance using the WooEvents plugin?

    It’s a feature that they have baked in but without a setting to disable it… The worst part about this is that it uses an external resource to generate the barcode that can make creating the PDF extremely slow (more information in the forums here: PDFs slow to generate).

    You can remove this barcode from the PDF documents with a small code snippet:

    
    add_action( 'wpo_wcpdf_before_html', 'wpo_wcpdf_disable_wooevents_barcodes', 10, 2 );
    function wpo_wcpdf_disable_wooevents_barcodes( $document_type, $document ) {
    	remove_action( 'wpo_wcpdf_after_order_details', 'wooevents_add_barcode', 10, 2 );
    }
    

    That’s more of a temporary workaround, I think it’s best if you let the WooEvents developers know you would like to be able to turn this feature off.

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

    Hope that helps!

    Thread Starter zweihochvier

    (@zweihochvier)

    Thank you so much. It worked. 😉

    Kind regards

    Plugin Contributor Ewout

    (@pomegranate)

    Very glad to hear that 🙂

    Have a fantastic weekend!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Barcode’ is closed to new replies.