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

    (@pomegranate)

    Hi Ewoud,
    You can do this in a custom template with the following code:

    <?php $wpo_wcpdf->billing_email(); ?><br/>
    <?php $wpo_wcpdf->billing_phone(); ?>

    Ewout

    But how to make this custome template, I am new to wordpress please help…

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Saurabh,
    Making a custom template is as ‘easy’ as copying files on your webserver. The precise files and folders you need to copy are indicated on the Template settings tab.
    The destination folder often needs to be created, a lot of woocommerce enable themes already have a /woocommerce folder, but you will always need to create the /pdf/yourtheme (or /pdf/Saurabh ?? part .

    Good luck!
    Ewout

    Hii Ewout,
    Thank you for your reply, but i have followed you and changed in invoice.php in my custom template, but no changes occures,this is my code….

    <div class=”order-information”>
    <?php
    $date_setting = isset($wpo_wcpdf->settings->template_settings[‘display_date’])?$wpo_wcpdf->settings->template_settings[‘display_date’]:’order_date’;
    $number_setting = isset($wpo_wcpdf->settings->template_settings[‘display_number’])?$wpo_wcpdf->settings->template_settings[‘display_number’]:’order_number’;

    // set $display date & label to user setting
    if ( $date_setting == ‘invoice_date’ ) {
    $display_date = $wpo_wcpdf->get_invoice_date();
    $display_date_label = __( ‘Invoice Date:’, ‘wpo_wcpdf’ );
    } else {
    $display_date = $wpo_wcpdf->get_order_date();
    $display_date_label = __( ‘Order Date:’, ‘wpo_wcpdf’ );
    }

    // set $display number & label to user setting
    if ( $number_setting == ‘invoice_number’ ) {
    $display_number = $wpo_wcpdf->get_invoice_number();
    $display_number_label = __( ‘Invoice Number:’, ‘wpo_wcpdf’ );
    } else {
    $display_number = $wpo_wcpdf->get_order_number();
    $display_number_label = __( ‘Order Number:’, ‘wpo_wcpdf’ );
    }
    ?>
    <span class=”order-date-label”><?php echo $display_date_label; ?></span>
    <span class=”order-date”><?php echo $display_date; ?></span>
    <span class=”order-number-label”><?php echo $display_number_label; ?></span>
    <span class=”order-number”><?php echo $display_number; ?></span>
    <span class=”order-payment-label”><?php _e( ‘Payment Method:’, ‘wpo_wcpdf’ ); ?></span>
    <span class=”order-payment”><?php $wpo_wcpdf->payment_method(); ?></span>
    </div>
    </td>
    <td>

    <div class=”recipient-address”>
    <?php $wpo_wcpdf->billing_address(); ?>
    <?php $wpo_wcpdf->billing_email(); ?>
    <?php $wpo_wcpdf->billing_phone(); ?>
    </div>

    </td>
    </tr>
    </table><!– head container –>

    But no changes comes, even after commenting <?php $wpo_wcpdf->billing_address(); ?> ,this address is printed in bill, i.e no change at all, also emptied the cache. Please help.
    With regards
    Saurabh

    Sorry Ewout, It was my mistake , i had not changed the template in settings, now working very cool , thank you once again.
    With regards,
    Saurabh

    Plugin Contributor Ewout

    (@pomegranate)

    Good to hear that you were able to fix it so quickly. Happy selling!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘include customer tel. no. and email addrss on packing slip?’ is closed to new replies.