Hi @webvizionph,
Thanks for your question.
Of course. You can overwrite all the ATUM templates from your child theme and add any code you need. Please read this to learn how to overwrite templates.
Best Regards,
José Andrés
Thank you Jose!
However, I don’t want to use a child theme, I tried adding a code snippet like the one below but doesn’t work. I think the filter hook is incorrect.
function add_tracking_number_to_pdf_template($template_output, $po) {
$tracking_number = $po->tracking_order_number;
$ tracking_number _html = ‘<div class=”row”>’;
$ tracking_number _html .= ‘<span class=”label”>’ . esc_html__(‘Tracking Number:’, ‘atum-plugin’) . ‘ </span>’;
$ tracking_number _html .= ‘<span class=”field”>’ . esc_html($ tracking _number) . ‘</span>’;
$ tracking_number _html .= ‘</div>’;
$template_output .= $ tracking_number _html;
return $template_output;
}
add_filter(‘atum_purchase_order_pdf_template_output’, ‘ add_tracking_number_to_pdf_template ‘, 10, 2);
Hi @webvizionph,
That filter doesn’t exist. There’s no filter to achieve what you want, sorry. The only way would be by overwriting the template.
Best Regards,
José Andrés
How about the PurchaseOrders.php?
Is there a way to edit it in the childtheme so that i can display the acf custom field on the table?
Thank you!
I’m referring to this folder, Jose.
/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/PurchaseOrders/
Hi @webvizionph,
Please note that we don’t provide custom coding support. I kindly suggest finding a good developer to assist you.
You can use the standard WordPress hooks and any ATUM hook to get what you want. We’re also open to suggestions to add new hooks if we find them necessary.
Best Regards,
José Andrés