• Hi Bas, is there a way of adding a code to my theme functions.php that will show a PDF download link /button on the “Thank you for your order” page of checkout process?

    BR, Jan

    > And big thanks for a great PDF invoice plugin!

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have this problem also. They actually provided a way how to add a PDF download link on the Thank you page. Its in the this plugin’s FAQ. Have you tried it? Tell me if it works on your end

    That code not working for me. Is there any way to fix that?

    Plugin Author Bas Elbers

    (@baaaaas)

    Try below code. It should work.

    echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->get_id . '"]' );

    Yeah this works for me now. Thanks a lot!

    hi @baaaaas , the code dont work for me

    i tried

    <?phpecho do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->get_id . '"]' );?>

    and

    <?php $order_id = method_exists( 'WC_Order', 'get_id' ) ? $this->order->get_id() : $this->order->id;
    echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order_id . '"]' ); ?>

    but anything work

    this is my complete code

    	<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), $order ); ?></p>
    			<?php  echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->get_id . '"]' );?>

    thnkyou

    ok works

    echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->id . '"]' );

    . $order->id .

    not . $order->get_id .

    where you edit it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PDF download link on Thank you for order page?’ is closed to new replies.