Conditional Title Based on Payment Method?
-
Hello,
I have two payment methods on my site, PayPal and COD. When a cart checkout is complete through Paypal, I was hoping to have the PDF generated read “INVOICE” (like it does now) and when COD is selected, read “QUOTE” (I use COD to generate quotes more than actual CODs).
I’m guessing this line in the email template has something to do with that:
<h1 class=”document-type-label”>
<?php if( $wpo_wcpdf->get_header_logo_id() ) echo apply_filters( ‘wpo_wcpdf_invoice_title’, __( ‘Invoice’, ‘wpo_wcpdf’ ) ); ?>
</h1>Can this be done?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Conditional Title Based on Payment Method?’ is closed to new replies.