Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    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

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

Viewing 4 replies - 1 through 4 (of 4 total)