Krokedil Product Documents

Krokedil Product Documents makes it easy for you to display and send documents to your customers related to a specific product.


↑ Back to top
  1. Download the .zip file from your WooCommerce account.
  2. Go toWordPress Admin > Plugins > Add New and Upload Plugin the file you have downloaded.
  3. Install Now and Activate.

More information at Install and Activate Plugins/Extensions.

Setup and Configuration

↑ Back to top

Go to WooCommerce > Settings> Product Documents.

  1. Include documents – Add a section to order emails containing links to related documents.
    When this feature is activated, and a product with a document assigned to it exists in an order, the email sent to the customer will include a new section with links to the documents.
  2. Display tab – Check this box to display documents in a custom product tab.
    Documents can also be displayed via the shortcode [kpd_documents]
Krokedil Product Documents settings

Add documents to a product

↑ Back to top

The plugin adds a new product data tab named Documents.

Add documents to a product in WooCommerce

In this tab you can:

  • Add one or several documents to the product.
  • Drag and drop the display order of the documents.
  • Change the title of the documents.
  • Change the documents tab name displayed in the front-end.

To assign a document to a product you:

  1. Click on the Add new files button.
  2. Select the document you want to assign.
  3. Click the Update button in the top right Publish metabox.
  4. If you want to change the document title or reorder the documents display order, make sure to Update the product again when you’re finished.

Front-end view

↑ Back to top

The plugin adds a new product tab displayed on the single product page. Each document is listed with the file name or the specified document title, along with an icon illustrating the document’s file type.

Krokedil Product Documents front-end view

Email view

↑ Back to top

If the Include documents setting is enabled, a section is added at the bottom of the order email, containing links to the related documents.

Customizing the icons

↑ Back to top

If you want to use your own icons, the plugin have a filter named kpd_document_icon.

You can modify the icons in the following way:

* Use together with Krokedil Product Documents pluign.
* Filter kpd_document_icon
* In this example we change icons for xlxs, docx & svg files.
* @param string $icon_url The url to the icon.
* @param string $file_type The attached document file type (pdf, jpg etc).
* @param int $post_id Current product post ID.
* @param string $file_name The attached document file name.
add_filter( 'kpd_document_icon', 'custom_kpd_document_icon', 10, 4 );
function custom_kpd_document_icon( $icon_url, $file_type, $post_id, $file_name ) {
switch ( $file_type ) {
case 'xlsx':
$icon_url = '';
case 'docx':
$icon_url = '';
case 'svg':
$icon_url = '';
return $icon_url;

Questions & support

↑ Back to top
  • Please get in touch with us if you have any questions before you buy the plugin.
  • Have you already purchased the plugin and need some assistance – create a ticket an we will help you.