Hi Ethan,
Thank you for your suggestion and for taking the time to explain your use case.
At the moment, the plugin doesn’t provide an official public API or rendering helper for displaying the receipt upload widget on custom checkout pages or other custom WooCommerce templates.
However, we think this is a great idea and can certainly see how it would benefit developers building custom WooCommerce experiences.
I’ve forwarded your feature request to our development team for review. We’ll discuss whether this can be included in a future release.
Thank you again for the valuable feedback!
Thank you for the quick response.
I appreciate you forwarding it to the development team. Having an official function or action hook would make integrating the plugin with custom checkouts much easier.
Looking forward to future updates!
Hi Ethan,
Good news! 🎉
We’ve implemented this feature in Ainbae Receipt Upload for WooCommerce v2.1.1.
You can now render the receipt upload widget anywhere using either the public helper function or the action hook.Render using the helper function
ainbae_render_receipt_upload( $order );
The function accepts either a WC_Order object or an Order ID.Or use the action hook
do_action( 'ainbae_receipt_upload_widget', $order );
Both also accept an Order ID:
ainbae_render_receipt_upload( 123 );
do_action( 'ainbae_receipt_upload_widget', 123 );
This allows you to embed the upload widget on:
- Custom checkout pages
- Custom Thank You pages
- Theme templates
- WooCommerce extensions
- Custom account pages
We’ve also added documentation for this feature in the plugin README.
Thank you again for suggesting this improvement. Feedback like yours helps make the plugin more flexible for everyone.