› Forums › WooCommerce Plugins › How can I add custom fields (like GST, VAT, or order notes) to the PDF?
- This topic has 0 replies, 1 voice, and was last updated 3 months, 3 weeks ago by
kiya.
-
AuthorPosts
-
September 25, 2025 at 5:11 am #4364
kiya
ParticipantI’m using PDF Generator for WP Pro to create invoices and other documents from my WooCommerce orders. While the default PDF includes order details like product name, price, and customer info, I also need to show additional fields such as GST number, VAT ID, and custom checkout fields (like delivery notes or order instructions).
Right now, these fields don’t appear in the generated PDF. Is there a way to:
- Pull in custom checkout fields automatically into the PDF?
- Add tax-related fields (like GST/VAT) for compliance purposes?
- Customize the template so these fields show up in the right position?
It would be great if there were a built-in setting, shortcode, or hook in the plugin that allows adding custom fields without editing core files. Any guidance or examples would be really helpful.
September 25, 2025 at 12:33 pm #4371Andrew
ParticipantThank you for reaching out! 😊 Yes, with PDF Generator for WP Pro, you can absolutely include custom fields like GST, VAT, delivery notes, or any other checkout/order meta fields in your generated PDFs.
Here’s how you can do it:
1. Enable Custom Fields in Settings
- Go to your WordPress Dashboard → PDF Generator → Settings.
- Under the Meta Fields / Custom Fields option, you can select the additional order fields you want to display in the PDF.
2. Use Shortcodes for Dynamic Data
- The plugin supports shortcodes to fetch order-related data.
- You can insert shortcodes (e.g., for order notes or tax fields) directly into your custom PDF template.
3. Add Fields via Template Editor
- If you’re using the custom template feature, simply drag-and-drop or place the shortcode/field placeholder into the PDF layout where you want GST/VAT or notes to appear.
4. For Advanced Customization
- Developers can use the provided hooks and filters to map additional custom fields into the PDF.
If you face any issue while mapping your specific fields, please share the field key/meta name, and we’ll guide you with the exact shortcode or hook needed.
-
AuthorPosts
- You must be logged in to reply to this topic.