In this document, you will find many useful snippets for customizing the functionality of WooCommerce PDF Vouchers extension.
You can add this code snippet to a custom plugin or your theme's functions.php to display redeem button on the top of QRCode page.
You can add this code snippet to a custom plugin or your theme's functions.php to remove the preview image, while previewing the voucher on single product page.
You can add this code snippet to a custom plugin or your theme's functions.php to change download button text on downloads page.
By default plugin use WordPress date and time format set in Settings -> General page. You can add this code snippet to a custom plugin or your theme's functions.php to change date format in PDF Vouchers.
You can add this code snippet to a custom plugin or your theme's functions.php to change the date format at all those places where PDF/CSV is downloaded.
You can add this code snippet to a custom plugin or your theme's functions.php to change date format of product start and end date on product edit page.
You can add this code snippet to a custom plugin or your theme's functions.php to add custom CSS for check QRcode page.
To change font for generated PDF you can add this code snippet to a custom plugin or your child theme's functions.php by replacing 'freeserif' with a name of your font.
You can add this code snippet to a custom plugin or your theme's functions.php to change preview text and popup title.
You can add this code snippet to a custom plugin or your theme's functions.php.
You can add this code snippet to a custom plugin or your theme's functions.php.
For example you if you want to show the information as mention in below screenshot to the pdf voucher.
You need to add shortcode called {order_items_meta}
in voucher template. Once you add shortcode then add following code to a custom plugin or your theme's functions.php.
Once you add the code, information in the pdf voucher will look as below screenshot.