Woocommerce Display Custom Field value on the Thank You page [Custom Field Display 2]
/**
* Display field value on the Thank You page..
*
* PHP Custom Feild Value
*
*
*/
add_action( 'woocommerce_thankyou', 'misha_view_order_and_thankyou_page', 20 );
add_action( 'woocommerce_view_order', 'misha_view_order_and_thankyou_page', 20 );
function misha_view_order_and_thankyou_page( $order_id ){ ?>
<h2>Location You Choose</h2>
<table class="woocommerce-table shop_table gift_info">
<tfoot>
<tr>
<th scope="row">Store Location</th>
<td><?php echo get_post_meta( $order_id, 'My Field', true ); ?></td>
</tr>
</tfoot>
</table>
<?php }
Also in PHP:
- Allowed memory size of 1610612736 bytes exhausted composer require laravel windows
- date math sql php
- curl error (code 3) url malformed laravel
- array php missing key
- create migration laravel
- clear storage laravel
- 500 Server Error laravel when sign up
- Laravel users_email_unique
- display page template using functions.php
- check character present in sentence in phph
- arry reverse in php
- dates phpp
- check composer version terminal
- file upload permission in php
- error log all php
- convert any uppercase to capitalize in php
- array key exists and is true
- error php code
- array empty check in php
- fetch values and display in bar chart php mysql
- build strong password in php
- clean function in php
- RuntimeException: No application encryption key has been specified.
- fetch today data in php