set background image based on custom field
-
I’d like to add a custom class based on my custom State form field.
when the PDF loads, how can i set the if statement to show a certain table with a related class at the start of page 1?
if <?php $wpo_wcpdf->custom_field(‘_billing_state’, ”, true); ?> is NY then show <table class=”pageny”>
if <?php $wpo_wcpdf->custom_field(‘_billing_state’, ”, true); ?> is CT then show <table class=”pagect”>
if <?php $wpo_wcpdf->custom_field(‘_billing_state’, ”, true); ?> is NJ then show <table class=”pagenj”>https://www.ads-software.com/plugins/woocommerce-pdf-invoices-packing-slips/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘set background image based on custom field’ is closed to new replies.