nehadaga3
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding custom fieldThanks for the response! I created a child theme and then created the custom template under it.I referred below link to add custom field.
https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/displaying-a-custom-field/Below is the piece of code i added to test:
I do see the label ‘delivery-date’ in my invoice but the value is blank.
I tried with different meta_keys to test if this code works but value is not being displayed for any of it.
add_action( ‘wpo_wcpdf_after_order_data’, ‘wpo_wcpdf_delivery_date’, 10, 2 );
function wpo_wcpdf_delivery_date ($template_type, $order) {?>
<tr class=”delivery-date”>
<th>Delivery Date:</th>
<td><?php echo $order->get_meta(‘_qty’); ?></td>
</tr>
<?php}
quesitons:
1. I used this table to get the meta_key name -SELECT disitnct meta_key FROMwp_woocommerce_order_itemmeta
–> Is this right ?
My product dashboard has HSN Code a field but where can i find meta_key for it ?2. In which file the functions get_meta() or get_order_items() can be found to see what the code is and what it is returning ? (does it stores only specific values which are displayed in ‘Simple’ template. )
3. can you please guide through the steps on how to fetch the value .
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding custom fieldThanks! But I have few more follow questions on the options I am trying to get through this. Is there any call support for wordpress where I can share my screen and get the issue resolved ?