WooCommerce Product Data PDF Generator

Product data will be available depending on the E2Pdf Template connection.

  • Can be used in templates that are connected to:

    • WooCommerce -> Orders

      If the E2Pdf Template is connected to Orders, additional attributes must be used to get the product data:

      • Get Product Data by Index in Order:
        • index - is the index of the purchased product in the Order.

    • WooCommerce -> Cart

      If the E2Pdf Template is connected to Cart, additional attributes must be used to get the product data:

      • Get Product Data by Index in Order:
        • index - is the index of the purchased product in the Order.

    • WooCommerce -> Products
    • WooCommerce -> Variations

Inner Shortcodes #

Product ID #

    • Set shortcode to the current Product ID:
      • id - is not set.

    • Set shortcode to the pre-defined Product ID:
      • id - is set to the Product ID.

    • Set shortcode to the dynamic Product ID:
      • id - is set to dynamic.

        • [e2pdf-wc-order key="metakey2" meta="true"] must output Order ID.
        • All additional [e2pdf-wc-product] shortcodes inside the same field / element must be closed as [e2pdf-wc-product key="ID"][/e2pdf-wc-product]

    • Set shortcode to the Product ID from the Order:
      • index - is the index of the purchased product in the Order.

WC Price #

    • Global attribute to format the number with a currency symbol.

Product Data #

    • Name:
    • Type:
    • Slug:
    • Date Created:
    • Date Modified:
    • Status:
    • Featured:
    • Catalog Visibility:
    • Description:
    • Short Description:
    • Sku:
    • Price:
    • Regular Price:
    • Sale Price:
    • Date Sale From:
    • Date Sale To:
    • Total Sales:
    • Tax Status:
    • Tax Class:
    • Manage Stock:
    • Stock Quantity:
    • Stock Status:
    • Backorders:
    • Low Stock Amount:
    • Sold Individually:
    • Weight:
    • Length:
    • Width:
    • Height:
    • Dimensions:
    • Upsell IDs:
    • Cross Sell IDs:
    • Parent ID:
    • Reviews Allowed:
    • Purchase Note:
    • Attributes:
    • Default Attributes:
    • Menu Order:
    • Password:
    • Category IDs:
    • Tag IDs:
    • Virtual:
    • Gallery Image Ids:
      • 1st image:
      • 2nd image:

    • Shipping Class ID:
    • Downloads:
    • Download Expiry:
    • Downloadable:
    • Download Limit:
    • Image ID:
    • Rating Counts:
    • Average Rating:
    • Review Count:
    • Title:
    • Product Permalink:
    • Children:
    • Stock Managed ID:
    • Price (HTML):
    • Formatted Name:
    • Min Purchase Quantity:
    • Max Purchase Quantity:
    • Image:
    • Shipping Class:
    • Rating Count:
    • File:
    • File Download Path:
    • Price Suffix:
    • Availability:

Product Attributes #

    • Product attributes:

Order #


Product Order Data #

    • Name:
    • Type:
    • Quantity:
    • Tax Status:
    • Tax Class:
    • Formatted Meta Data:
    • Product ID:
    • Variation ID:
    • Subtotal:
    • Subtotal Tax:
    • Total:
    • Total Tax:
    • Taxes:
    • Item Download URL:
    • Downloads:
    • Item Subtotal:
    • Item Total:
    • Item Tax:
    • Line Total:
    • Line Tax:
    • Formatted Line Subtotal:
    • Order Item ID:
    • Order Response Hook:

Product Order Item Meta #

    • Product Item Meta:

Post Data #

Product Post Data #

    • ID:
    • Author:
    • Author ID:
    • Date:
    • Date (GMT):
    • Content:
    • Title:
    • Excerpt:
    • Status:
    • Comment Status:
    • Ping Status:
    • Password:
    • Name:
    • To Ping:
    • Ping:
    • Modified Date:
    • Modified Date (GMT):
    • Filtered Content:
    • Parent ID:
    • GUID:
    • Menu Order:
    • Type:
    • Mime Type:
    • Comments Count:
    • Filter:
    • Post Thumbnail:
    • Post Thumbnail URL:
    • Permalink:
    • Post Permalink:

Product Post Meta #

    • Get Product Meta Value:
    • Get Product Meta Value converted from the attachment id to the attachment url:
    • Get Product Meta Value converted from the attachment id to the image attachment url:
    • Get Product Meta Value converted from the attachment id to the image attachment url with the specified size:
      • Default Image sizes: thumbnail, medium, medium_large, large, full

    • Get single value from the comma separated value:
      Value 1, Value 2, Value 3

      • 1st value:
      • 2nd value:

    • Get comma separated value from the indexed array:
      a:2:{i:0;s:7:"Value 1";i:1;s:7:"Value 2";}
    • Get single value from the indexed array:
      a:2:{i:0;s:7:"Value 1";i:1;s:7:"Value 2";}

    • Get single value from the multidimensional array:
      a:2:{i:0;a:1:{s:4:"name";s:7:"Value 1";}i:1;a:1:{s:4:"name";s:7:"Value 2";}}

Product Post Terms #

    • Get the Terms in a given Taxonomy:
    • Get the Terms in a given Taxonomy names:
    • Get the Terms in a given Taxonomy names as comma separated value:
    • Get the Terms in a given Taxonomy by Order ID:
    • Get the Terms in a given Taxonomy by Dynamic Order ID:
      • [e2pdf-wc-product key="metakey2" meta="true"] must output Order ID
      • All additional [e2pdf-wc-product] shortcodes inside the same field / element must be closed as [e2pdf-wc-product key="ID"][/e2pdf-wc-product]

    • Get the Terms in a given Taxonomy converted from the attachment id to the attachment url:
    • Get the Terms in a given Taxonomy converted from the attachment id to the image attachment url:
    • Get the Terms in a given Taxonomy converted from the attachment id to the image attachment url with the specified size:
      • Default Image sizes: thumbnail, medium, medium_large, large, full

    • Convert serialized value a:3:{i:0;s:2:"v1";i:1;s:2:"v2";i:2;s:2:"v3";} to the comma separated value:
    • Output single value from the serialized multidimensional array a:2:{i:0;a:1:{s:4:"name";s:7:"Value 1";}i:1;a:1:{s:4:"name";s:7:"Value 2";}}:
      • Will output value from array(0 => name)

Product Forms #

Additional #

    • Dataset:
      • Can be used as shortcode attribute: [shortcode id="[e2pdf-dataset]"]

    • PDF URL:

Inner Helper Shortcodes #

[e2pdf-foreach] #

The shortcode is used to iterate over product data.

    • Product Attributes:

    • Formatted Meta Data:

[e2pdf-user] #

The shortcode is used to get User Data / User Meta Data inside E2Pdf Templates. Read More ››

    • Get User Data:

[e2pdf-format-number] #

The shortcode modifies the number output of a shortcode or field slug. Read More ››

    • Format the Number Output:

[e2pdf-format-date] #

The shortcode modifies the date output of a shortcode or field slug. Read More ››

    • Format the Date Output:

[e2pdf-format-output] #

The shortcode modifies the output of a shortcode or field slug. Read More ››

    • Format the Output:

Global Shortcodes #

[e2pdf-download] #

The shortcode generates and outputs the PDF download link button. Read More ››

[e2pdf-attachment] #

The shortcode generates a PDF and attaches it to the email. Read More ››

[e2pdf-view] #

The shortcode inserts the PDF into the page via pdf.js viewer. Read More ››

[e2pdf-save] #

The shortcode saves the PDF file on the server. Read More ››

[e2pdf-zapier] #

The shortcode generates and sends a Zapier request via a webhook. Read More ››

Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.