• Resolved mrkuji

    (@mrkuji)


    It would be great to have a user configurable, fixed, minimum height of the shipping address so that when printing on integrated labels (S11) the PRODUCT line does not print onto the label when the address contains only a few lines..

    Super plugin thankyou so much

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

    (@alexmigf)

    Hello @mrkuji

    Are you referring to the Invoice or Packing Slip?

    Let me know.

    Thread Starter mrkuji

    (@mrkuji)

    Hey Alex.. I was referring to the Invoice.
    I have been custom adding some break lines in the template.. but I imagine that it would be useful for various integrated labels.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @mrkuji

    You can set a fixed height for it using the code snippet below. Please add it to your theme functions.php file:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        .invoice .shipping-address {
            height: 4cm; /* replace with other value */
        }
        <?php
    }

    If you never worked with actions/filters, please read this documentation page: How to use filters

    Thread Starter mrkuji

    (@mrkuji)

    Amazing thats fantastic thankyou… would be good to see this built into the plugin as an option but for now I tip my hat to you sir thanks.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @mrkuji

    It shouldn’t happen because the address can have multiple height sizes and without a fixed height it could expand easily. Your case is different, and when this happen CSS could help us ??

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Minimum address height’ is closed to new replies.