Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
460 B
5
Indexable
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()->is_b2b_user($customer_id)){
        $document = wcpdf_get_document( $template_type, $order );
        ?>      
        <tr class="payterms">
            <th>Payment Terms:</th>
            <td>Pay within X days</td>
        </tr>
        <?php
    }
    
}