Untitled
plain_text
2 months ago
471 B
0
Indexable
Never
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_delivery_date', 10, 2 ); function wpo_wcpdf_delivery_date ($template_type, $order) { $customer_id = $order->get_customer_id(); if (b2bking()->get_user_group($customer_id) == 1234){ $document = wcpdf_get_document( $template_type, $order ); ?> <tr class="payterms"> <th>Payment Terms:</th> <td>Pay within X days</td> </tr> <?php } }