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 E2Pdf Template is connected to Orders it must be used an additional attributes to get the product data:
- Get Product Data by Index in Order:
- index - is the index of the purchased product in the Order.
- Get Product Data by Index in Order:
-
WooCommerce -> Cart
If E2Pdf Template is connected to Cart it must be used an additional attributes to get the product data:
- Get Product Data by Index in Order:
- index - is the index of the purchased product in the Order.
- Get Product Data by Index in Order:
- WooCommerce -> Products
- WooCommerce -> Variations
-
WooCommerce -> Orders
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 same field / element must be closed as [e2pdf-wc-product key="ID"][/e2pdf-wc-product]
-
id - is set to dynamic.
-
Set shortcode to the Product ID from the Order:
- index - is the index of the purchased product in the Order.
-
Set shortcode to the current Product ID:
WC Price #
-
- Global attribute to format 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 #
-
- Order data will be available only if the order exists in the context. https://e2pdf/com/docs/extensions/woocommerce/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";}
- Will output value from array(0)
- To unserialize the array for the structure it can be used: https://www.unserialize.com/
-
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";}}
- Will output value from array(0 => name)
- To unserialize the array for the structure it can be used: https://www.unserialize.com/
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 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 #
-
-
In case of using one of the below mentioned form plugins associated with the product, it's possible to use the native form's syntax inside E2Pdf Templates connected to WooCommerce Products / Variations:
-
In case of using one of the below mentioned form plugins associated with the product, it's possible to use the native form's syntax inside E2Pdf Templates connected to WooCommerce Products / Variations:
Additional #
-
-
Dataset:
- Can be used as shortcode attribute: [shortcode id="[e2pdf-dataset]"]
- PDF URL:
-
Dataset:
Inner Helper Shortcodes #
[e2pdf-foreach] #
Shortcode is used to iterate over order data.
-
- Product Attributes:
- Formatted Meta Data:
[e2pdf-user] #
Shortcode is used to get User Data/User Meta Data. The shortcode can be used inside E2Pdf Templates. Read More ››
-
- Get User Data:
[e2pdf-format-number] #
Shortcode is applied to modify the number output of the shortcode or field slug. Read More ››
-
- Format the Number Output:
[e2pdf-format-date] #
Shortcode is applied to is applied to modify the date output of the shortcode or field slug. Read More ››
-
- Format the Date Output:
[e2pdf-format-output] #
Shortcode is applied to modify the output of the shortcode or field slug. Read More ››
-
- Format the Output:
Global Shortcodes #
[e2pdf-download] #
Shortcode is applied to generate and output the PDF download link button. Read More ››
[e2pdf-attachment] #
shortcode is applied to generate PDF and attach it to the email as an attachment. Read More ››
[e2pdf-view] #
Shortcode is applied to insert PDF to the page via pdf.js viewer. Read More ››
[e2pdf-save] #
Shortcode is applied to save PDF file on the server. Read More ››
[e2pdf-zapier] #
Shortcode is applied to generate and send Zapier request via WebHook. Read More ››