If none of the built in PDF layouts are what you are looking for then there are two solutions for your own custom PDF template.

First option: code your own template in PHP.

Print products PDF

Therefore you can use one of the two filters:

  1. woocommerce_print_products_product_html
  2. woocommerce_print_products_product_final_html

Print Posts Plugin

  1. wordpress_print_posts_html

Then you need to return HTML code in your custom coded functions. An example:

add_filter('woocommerce_print_products_product_final_html', 'we_custom_pdf_template', 20, 3);
function we_custom_pdf_template($html, $productId, $data) {
	$product = wc_get_product($productId);
	if(!$product) {
		return;
	}

	$html = 'My Test';

	return $html;
}

2nd option: contact our customization service

Therefore please send us an email to [email protected] including the following information:

  • desired template (PDF mockup)
  • information where what data is coming from (best you comment that in the PDF template)
  • make sure you mark custom data fields / ACF fields correctly

Then we can give you a quote.

Leave a Reply

Your email address will not be published.