Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cbi_display_cf_order_data( $order ){
- $codice_fiscale = get_post_meta( $order->get_id(), '_codice_fiscale', true );
- if( ! empty( $_POST['codice_fiscale'] ) ) ?>
- <h2><?php _e( 'Extra Information' ); ?></h2>
- <table class="shop_table shop_table_responsive additional_info">
- <tbody>
- <tr>
- <th><?php _e( 'VAT ID number:' ); ?></th>
- <td><?php echo $codice_fiscale; ?></td>
- </tr>
- </tbody>
- </table>
- <?php
- }
- add_action( 'woocommerce_thankyou', 'cbi_display_cf_order_data', 20 );
- add_action( 'woocommerce_view_order', 'cbi_display_cf_order_data', 20 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement