{"id":45804,"date":"2024-10-21T11:43:11","date_gmt":"2024-10-21T11:43:11","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=45804"},"modified":"2024-10-24T09:59:53","modified_gmt":"2024-10-24T09:59:53","slug":"how-to-generate-shortcode-for-product-table","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/","title":{"rendered":"How to Generate a Shortcode for Product Table"},"content":{"rendered":"\n<p>In this tutorial, we will generate two shortcodes: one for the product table and the other for the product variations table.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">This tutorial is based on the <a href=\"https:\/\/crocoblock.com\/dynamic-templates\/zolden\/\"><strong>Zolden<\/strong> dynamic template<\/a>.<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"generate-a-shortcode\">Generate a Shortcode<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p>Proceed to the <strong><em>WordPress Dashboard &gt; WooCommerce &gt; Settings &gt; Product Table <\/em><\/strong>directory.<\/p>\n\n\n\n<p>Here, press the \u201c<strong>Generate Shortcode<\/strong>\u201d button to open the <strong>Shortcode Generator <\/strong>pop-up.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-1024x640.webp\" alt=\"generate shortcode button\" class=\"wp-image-45805\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the opened pop-up, select one of the options in the <strong>QUERY TYPE <\/strong>field: \u201cProducts\u201d or \u201cProduct Variations.\u201d<\/p>\n\n\n\n<p>We will show two cases for both query types.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"products-table\">Products table<\/h3>\n\n\n\n<p>We leave the default \u201cProducts\u201d <strong>QUERY TYPE <\/strong>and proceed to the following tabs.<\/p>\n\n\n\n<p>In this tab, you can adjust settings as you wish.&nbsp;<\/p>\n\n\n\n<p>For example, we want to display only clothes that have the \u201cOur Choice\u201d and \u201cFall 2024\u201d tags and are attached to the \u201cMen\u2019s Collection\u201d category.<\/p>\n\n\n\n<p>So, we proceed to the <strong>Product <\/strong>tab and complete the <strong>TAG <\/strong>field with \u201cour-choice, fall-2024\u201d, where two slugs of the tags are presented, \u201cour-choice\u201d and \u201cfall-2024.\u201d These are separated by a comma.<\/p>\n\n\n\n<p>Next, right in this tab, we specify the <strong>CATEGORY <\/strong>by putting its slug (\u201cmens-collection\u201d) in the corresponding field.&nbsp;<\/p>\n\n\n\n<p>More about the <strong>Shortcode Generator <\/strong>settings can be found in the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/jetproducttables-dashboard-settings-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">JetProductTables Overview<\/a><\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type-1024x641.webp\" alt=\"product tab of the products query type\" class=\"wp-image-45806\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-tab-of-the-products-query-type.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once the first <strong>Query <\/strong>tab is adjusted, proceed to the <strong>Columns <\/strong>tab.&nbsp;<\/p>\n\n\n\n<p>Here, you can add or delete columns that will be added to the table. For instance, we delete the \u201cSKU\u201d and \u201cRating\/Reviews\u201d columns.<\/p>\n\n\n\n<p>Proceed to the following tabs if needed.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type-1024x641.webp\" alt=\"columns tab of the products query type\" class=\"wp-image-45807\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-products-query-type.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>For now, close the pop-up and proceed to the global <strong>Design <\/strong>tab.<\/p>\n\n\n\n<p>In the <strong>Table Headings <\/strong>tab, we set the <strong>TEXT COLOR<\/strong> and <strong>BACKGROUND COLOR<\/strong>.&nbsp;<\/p>\n\n\n\n<p>We also add the <strong>FONT SIZE <\/strong>(\u201c16\u201d) and <strong>LINE HEIGHT <\/strong>(\u201c30\u201d).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products-1024x641.webp\" alt=\"table headings design tab of the products\" class=\"wp-image-45808\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-products.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Table Body <\/strong>tab, we set the <strong>BACKGROUND COLOR <\/strong>and <strong>ALTERNATE BACKGROUND COLOR<\/strong>.<\/p>\n\n\n\n<p>Then, we set the <strong>BODY CELLS PADDING <\/strong>to \u201c75.\u201d<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products-1024x641.webp\" alt=\"table body design tab of the products\" class=\"wp-image-45809\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-products.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<strong>Generate Shortcode<\/strong>\u201d button one more time to return to the shortcode table generator.<\/p>\n\n\n\n<p>In the opened pop-up, press the \u201c<strong>Generate Shortcode<\/strong>\u201d button.<\/p>\n\n\n\n<p>Copy the shortcode and close the pop-up with the corresponding buttons.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab-1024x641.webp\" alt=\"products shortcode in the design tab\" class=\"wp-image-45810\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/products-shortcode-in-the-design-tab.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>After adjusting the needed settings, press the \u201c<strong>Save Settings<\/strong>\u201d button.<\/p>\n\n\n\n<p>Then, head to the page\/template where you want to add the shortcode table. For instance, we want to place the table on a static page, so we go to <strong><em>WordPress Dashboard &gt; Pages &gt; Add New Page <\/em><\/strong>and create a page in the Elementor editor.<\/p>\n\n\n\n<p>However, you are free to use the shortcode in any preferred editor.<\/p>\n\n\n\n<p>In the opened editor, we add a \u201cMen\u2019s Fall 2024: Our Top Picks\u201d <strong>Heading <\/strong>and a <strong>Shortcode <\/strong>widget.<\/p>\n\n\n\n<p>In the <strong>Enter your shortcode <\/strong>textarea, paste the copied shortcode.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor-1024x641.webp\" alt=\"shortcode with products in elementor\" class=\"wp-image-45811\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-products-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once you complete the page editing, press the \u201c<strong>Publish<\/strong>\u201d button and proceed to the front-end page.<\/p>\n\n\n\n<p>The product shortcode table is now presented here.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table-1024x641.webp\" alt=\"static page with a products table\" class=\"wp-image-45812\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/static-page-with-a-products-table.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"product-variations-table\">Product variations table<\/h3>\n\n\n\n<p>Let\u2019s create one more shortcode table; this time, it will display product variations.<\/p>\n\n\n\n<p>Return to <strong><em>WordPress Dashboard &gt; WooCommerce &gt; Settings <\/em><\/strong>and open the <strong>Product Table <\/strong>tab.<\/p>\n\n\n\n<p>Then, click the \u201c<strong>Generate Shortcode<\/strong>\u201d button.<\/p>\n\n\n\n<p>Select the \u201cProduct Variations\u201d <strong>QUERY TYPE<\/strong> and pick the preferred option in the <strong>GET VARIATIONS FROM <\/strong>selector.<\/p>\n\n\n\n<p>For instance, we leave the default \u201cCurrent product\u201d option to pull the variations of the current product.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type-1024x641.webp\" alt=\"general tab of the product variables query type\" class=\"wp-image-45813\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/general-tab-of-the-product-variables-query-type.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Move to the following tabs. For instance, we go to the <strong>Columns <\/strong>tab and delete the \u201cSKU\u201d and \u201cRating\/Reviews\u201d columns.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type-1024x641.webp\" alt=\"columns tab of the product variables query type\" class=\"wp-image-45814\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/columns-tab-of-the-product-variables-query-type.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Then, open the <strong>Design <\/strong>tab.<\/p>\n\n\n\n<p>In the <strong>Table Headings <\/strong>tab, we set the <strong>TEXT COLOR<\/strong> and <strong>BACKGROUND COLOR<\/strong>.&nbsp;<\/p>\n\n\n\n<p>After that, we add the <strong>FONT SIZE <\/strong>(\u201c16\u201d) and <strong>LINE HEIGHT <\/strong>(\u201c30\u201d).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table-1024x641.webp\" alt=\"table headings design tab of the product variables table\" class=\"wp-image-45815\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-headings-design-tab-of-the-product-variables-table.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Table Body <\/strong>tab, we set the <strong>BACKGROUND COLOR <\/strong>and <strong>ALTERNATE BACKGROUND COLOR<\/strong>.<\/p>\n\n\n\n<p>Then, we set the <strong>BODY CELLS PADDING <\/strong>to \u201c75.\u201d<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table-1024x641.webp\" alt=\"table body design tab of the product variables table\" class=\"wp-image-45816\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/table-body-design-tab-of-the-product-variables-table.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Press the \u201c<strong>Generate Shortcode<\/strong>\u201d button to re-open the generator pop-up.<\/p>\n\n\n\n<p>Here, generate and copy the shortcode. Then, close the pop-up.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab-1024x641.webp\" alt=\"product variations shortcode in the design tab\" class=\"wp-image-45817\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/product-variations-shortcode-in-the-design-tab.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Press the \u201c<strong>Save Settings<\/strong>\u201d button.<\/p>\n\n\n\n<p>The next step is adding a shortcode table to the page\/template. This time, we want to add a product variations table to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetwoobuilder\/jetwoobuilder-how-to-create-and-set-a-single-product-page-template\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Single Product Template<\/strong><\/a><strong> <\/strong>built with <a href=\"https:\/\/crocoblock.com\/plugins\/jetwoobuilder\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>JetWooBuilder<\/em><\/a>.<\/p>\n\n\n\n<p>So, we proceed to <strong><em>WordPress Dashboard &gt; Crocoblock &gt; Woo Page Builder <\/em><\/strong>and open the previously built <strong>Single Product Template<\/strong> in Elementor.<\/p>\n\n\n\n<p>Here, we add a <strong>Shortcode <\/strong>widget and enter the copied shortcode in the corresponding textarea field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor-1024x641.webp\" alt=\"shortcode with product variations in elementor\" class=\"wp-image-45818\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/shortcode-with-product-variations-in-elementor.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Once the page is ready, press the \u201c<strong>Publish<\/strong>\u201d button and proceed to one of the product pages on the front end.<\/p>\n\n\n\n<p>The product variations table is now displayed here.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"641\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table-1024x641.webp\" alt=\"single page with a products table\" class=\"wp-image-45819\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table-1024x641.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table-768x481.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table-1536x962.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table-600x376.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/single-page-with-a-products-table.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Also, watch our <strong>JetProductTables WordPress Plugin Overview <\/strong>video to learn more about the <strong><a href=\"https:\/\/www.youtube.com\/watch?v=Vqvvp9zqsn4&amp;t=1000s\" target=\"_blank\" rel=\"noreferrer noopener\">Shortcode Generator<\/a><\/strong>.<\/p>\n<\/div><\/div>\n\n\n\n<p>That\u2019s all; now you know how to generate a shortcode for a product table made with the <em>JetProductTables <\/em>plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From this tutorial, you will learn how to generate a shortcode for a product table built with the JetProductTables plugin.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[571],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Generate a Shortcode for Product Table \u2014 JetProductTables | Crocoblock<\/title>\n<meta name=\"description\" content=\"Discover how to generate a shortcode to display a product table with the JetProductTables plugin for WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Generate a Shortcode for Product Table \u2014 JetProductTables | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Discover how to generate a shortcode to display a product table with the JetProductTables plugin for WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-24T09:59:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-1024x640.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/\",\"name\":\"How to Generate a Shortcode for Product Table \u2014 JetProductTables | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2024-10-21T11:43:11+00:00\",\"dateModified\":\"2024-10-24T09:59:53+00:00\",\"description\":\"Discover how to generate a shortcode to display a product table with the JetProductTables plugin for WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Generate a Shortcode for Product Table\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate a Shortcode for Product Table \u2014 JetProductTables | Crocoblock","description":"Discover how to generate a shortcode to display a product table with the JetProductTables plugin for WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/","og_locale":"en_US","og_type":"article","og_title":"How to Generate a Shortcode for Product Table \u2014 JetProductTables | Crocoblock","og_description":"Discover how to generate a shortcode to display a product table with the JetProductTables plugin for WordPress.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/","og_site_name":"Help Center","article_modified_time":"2024-10-24T09:59:53+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2024\/10\/generate-shortcode-button-1-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/","name":"How to Generate a Shortcode for Product Table \u2014 JetProductTables | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2024-10-21T11:43:11+00:00","dateModified":"2024-10-24T09:59:53+00:00","description":"Discover how to generate a shortcode to display a product table with the JetProductTables plugin for WordPress.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetproducttables\/how-to-generate-shortcode-for-product-table\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Generate a Shortcode for Product Table"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/45804"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=45804"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=45804"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=45804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}