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

    (@pomegranate)

    Hi! I think this is a two-part question:

    1) Changing the address format is something you can either do with the Professional extension (via the settings, documentation here), or in a custom template (this will require some HTML+PHP knowledge, so you could post it on a site like codeable.io)

    2) The delivery date is added a by a third party plugin that you are using for this. Contact their developers of that plugin and they should be able to help.

    Ewout

    Thread Starter gabrielhuisg

    (@gabrielhuisg)

    Hi Ewout

    Thank you for your quick response.

    1) thanks for the advise for point number 1.

    2) yea the delivery date is by a third party. But could we move that field to the TOP right hand corner as seen in th PDF screenshot provided earlier?

    Thread Starter gabrielhuisg

    (@gabrielhuisg)

    Also could we show the payment method for packing list as well. If payment method is via “cash on delivery”, then it would should the amount. This allows delivery guys to be aware of the amount of cash to collect from customer during delivery.

    Could you show me how we could do that?

    Thank you very much

    Plugin Contributor Ewout

    (@pomegranate)

    2) Yes, they just have to use a different hook and a slightly different output (table rows since it’s in a table).

    3) Showing amount on the Packing slip when payment method is COD:

    
    add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_cod_show_total', 10, 2 );
    function wpo_wcpdf_cod_show_total ($template_type, $order) {
        $payment_method = $order->get_payment_method();
        if ($template_type == 'packing-slip' && $payment_method == 'cod') {
            ?>
            <tr class="cod-total">
                <th>Payment Method:</th>
                <td>COD (<?php echo $order->get_formatted_order_total(); ?>)</td>
            </tr>
            <?php
        }
    }
    

    (more about action hooks)
    Customizations like these are a bit beyond what we can offer as free support, so if you need more help, I recommend looking for a developer that can do this for you!

    Ewout

    Thread Starter gabrielhuisg

    (@gabrielhuisg)

    Thank you soooo much Ewout for your assistance.

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Create Headers and Payment Method on PDF Packing Slip’ is closed to new replies.