I am designing a registration form for a Golf Charity Tournament. I am utilizing Gravity PDF to produce an invoice once users complete the registration process. I aim to replace “Product” with “Description” and “Price” with “Total,” and also eliminate the Order name section from the generated PDF.
Hi @sethutsabedze7,
There are a number of WordPress hooks you can use to modify the labels used in the PDF Product table.
See:
- gravity-pdf/src/Helper/Fields/Field_Products.php at development · GravityPDF/gravity-pdf · GitHub
- gravity-pdf/src/Helper/Fields/Field_Products.php at development · GravityPDF/gravity-pdf · GitHub
- gravity-pdf/src/Helper/Fields/Field_Products.php at development · GravityPDF/gravity-pdf · GitHub
They are the same hooks used by Gravity Forms when it displays that information on the Entry Details page, so you can search GF’s docs for help implementing them e.g. gform_order_label - Gravity Forms Documentation
All the best with your project.
1 Like
Thank you @Jake_Jackson.
2 Likes