bvkumar2602
Forum Replies Created
-
Okay sent you an email just now.
what should i send you in the email?
add_action( ‘wpo_wcpdf_after_item_meta’, ‘wpo_wcpdf_print_acf_field’, 10, 3 );
function wpo_wcpdf_print_acf_field ( $template_type, $item, $order )
{
if ( !empty($order) && $template_type == ‘invoice’ ) {
?>
<div class=”hsncode”>
HSN Code:
<?php the_field( ‘hsncode’, $item[‘product_id’] ); ?>
</div>
<?php
}
}I m using the wrong ACF plugin ? Is that something causing the issue
I replaced the code with my field name my ACF field name hsncode
Still not working. I installed that code in my function.php file.
I tried it but it still not showing up.
I m using the free plugin.
Can you please help me with the code. I will really appreciate your help.
Thanks,
Vijay
Can we show a custom field of product in invoice pdf?
For example: I created a custom field using ACF field name hsn_code.
I want to display that into invoice pdf.
Please help.
Thanks,
Vijay
Forum: Fixing WordPress
In reply to: SGST & CGST Calculation is showing incurrate in my GST calculationOh thank you