WooCommerce Field Connections
The article covers all available field connections for the WooCommerce plugin. The field connections listed in this article require the WooCommerce plugin to be installed and active on your WordPress site.
Add to Cart Buttonβ
Outputs an add to cart button. A Variable Product will display dropdown boxes to select variation options above the add to cart button.
[wpbb post:woocommerce_add_to_cart_button]
Product Attributesβ
You can use the Term List field connection to output product attributes created via WordPress Admin Dashboard > Products > Attributes. This is done by prefixing the slug of the product attribute with pa_
as shown in the example below.
[wpbb post:terms_list taxonomy='pa_attributeName' html_list='no' display='name' separator=', ' limit= linked='yes']
The attribute slug can be found in the WordPress Admin Dashboard > Products > Attributes menu.
Product Imagesβ
Outputs a product image and gallery.
[wpbb post:woocommerce_product_images]
Product Metaβ
Outputs a product's meta. Example: SKU: beaver-builder-vneck-tee Category: Tshirts Tag: orange
[wpbb post:woocommerce_product_meta]
Product Orderingβ
Outputs the dropdown sort list that has choices for Default, Popularity, Price, etc.
Available on archive layouts only.
[wpbb archive:woocommerce_catalog_ordering]
Product Priceβ
Outputs a productβs price. Examples: $12.00 or $9.99 - $14.99 (for variable products).
[wpbb post:woocommerce_product_price]
Product Ratingβ
Outputs a product's rating with a link to the reviews tab e.g. βββββ (1 customer review)
[wpbb post:woocommerce_product_rating]
Product Result Countβ
Outputs the number of products displayed in the layout, such as "Showing 1β10 of 18 results."
Available on archive layouts only.
[wpbb archive:woocommerce_result_count]`
Product Saleβ
Outputs a sale label if a product has a sale price.
[wpbb post:woocommerce_sale_flash]
Product Short Descriptionβ
Outputs a product's short description.
[wpbb post:woocommerce_product_short_description]
Product SKUβ
Outputs a product's stock-keeping unit (SKU).
[wpbb post:woocommerce_product_sku]
Options
- Prefix Text - Accepts either
1
("True") to allow a custom prefix in the next field or0
("False") to display only the SKU. - Prefix - The prefix text to display (Default text is "SKU: ")
- Prefix Text - Accepts either
Example
[wpbb post:woocommerce_product_sku sku_prefix='1' prefix_text='Item Number:']
Product Tabsβ
Outputs the product tabs Description, Additional Information and Reviews.
[wpbb post:woocommerce_product_tabs]
Product Titleβ
Outputs a product's title.
[wpbb post:woocommerce_product_title]
Product Upsellsβ
Outputs upsell products.
[wpbb post:woocommerce_product_upsells]
Product Weightβ
[wpbb post:woocommerce_product_weight]
Options
- Prefix Text Accepts either
1
("True") to allow a custom prefix in the next field or0
("False") to display only the Weight. - Prefix The prefix text to display (Default text is "Weight: ")
- Prefix Text Accepts either
Example
[wpbb post:woocommerce_product_weight show_prefix='yes' prefix='Weight:']
Related Productsβ
Outputs related products.
[wpbb post:woocommerce_related_products]
Store Breadcrumbsβ
Outputs WooCommerce breadcrumbs. Example: Home / Mugs / Beaver Builder Mug
Available on both archive & singular layouts.
[wpbb post:woocommerce_breadcrumb]