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

    (@yordansoares)

    Hi @gramir,

    Could you please let me know how are you adding that row in your invoice? Are you maybe using a custom template?

    Thread Starter gramir

    (@gramir)

    Hi @yordansoares

    Thanks for the quick reply.

    No, nothing custom for this line. Could it be that it is added by the payment plugin “Saferpay Woocommerce Gateway” (to the order object)?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Try adding this code snippet to your site to break the long transaction_id text into several lines and prevent the text overflowing:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
    	if ( $document_type == 'invoice' ) {
    		?>
    		table.totals td.price span {
    			word-wrap: break-word;
    		}
    		<?php
    	}
    }

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

    Let me know if it worked!

    Thread Starter gramir

    (@gramir)

    Hi @yordansoares

    Worked like a charm!

    Thank you very much for the great support.

    Best regards, Mirco

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to know that worked!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Transaction id on invoice break word’ is closed to new replies.