• Resolved imwebvizion

    (@webvizionph)


    Hello again, Jose!

    Is there a way to include the ACF custom field on the generated PDF file in the purchase orders?

    Thanks a lot!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jose Andres Piera

    (@japiera)

    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

    Thread Starter imwebvizion

    (@webvizionph)

    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’) . ‘&nbsp;&nbsp;</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);

    Plugin Author Jose Andres Piera

    (@japiera)

    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

    Thread Starter imwebvizion

    (@webvizionph)

    I see, thank you!

    Thread Starter imwebvizion

    (@webvizionph)

    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!

    Thread Starter imwebvizion

    (@webvizionph)

    I’m referring to this folder, Jose.

    /wp-content/plugins/atum-stock-manager-for-woocommerce/classes/PurchaseOrders/

    Plugin Author Jose Andres Piera

    (@japiera)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Purchase Order ACF Custom Fields’ is closed to new replies.