• Resolved jrgndwvr

    (@jrgndwvr)


    Hello

    Until a few weeks ago we were able to show the VAT number of customers (= a custom checkout field) on the pdf invoices that we create with the plugin “PDF Invoices & Packing Slips for WooCommerce” from WP Overnight.

    We used this code to achieve that:

    add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_delivery_date', 10, 2 );
    function wpo_wcpdf_delivery_date ($template_type, $order) {
        if ($template_type == 'invoice') {
            $document = wcpdf_get_document( $template_type, $order );
            ?>      
            <tr class="delivery-date">
                <th>Ondernemingsnummer:</th>
                <td><?php $document->custom_field('billing_wooccm13'); ?></td>
            </tr>
            <?php
        }
    }

    But now for some reason the field “billing_woocm13” does not show up any more on the PDF invoices. The label of that field (“Ondernemingsnr:”) is still on the invoice. So that works. Only the content of that custom field is missing …

    For testing purposes I replaced the code <?php $document->custom_field(‘billing_wooccm13’); ?> with the word TEST and then it shows “TEST” on the PDF invoice …

    As I see it there is nothing wrong with the plugin of WP Overnight … Is there a chance that it has something to do with the Checkout Field Manager plugin?

    What can be the reason and how do we solve this?

    Thank you for the support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jmatiasmastro

    (@jmatiasmastro)

    @jrgndwvr

    Hello mate, we inform you that this issue was solved with the release of the latest version of our plugin.

    Could you update and confirm if the issue was fixed?

    Regards.

    Thread Starter jrgndwvr

    (@jrgndwvr)

    Hi … I fixed the problem then … But it looks like it is broken again … Any idea what would cause the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom checkout field does not show on PDF any more. (Before it worked fine.)’ is closed to new replies.