{"id":667,"date":"2018-04-10T13:22:03","date_gmt":"2018-04-10T13:22:03","guid":{"rendered":"https:\/\/demos.welaunch.io\/woocommerce-variations-table\/?post_type=faq&p=667"},"modified":"2023-01-24T13:56:15","modified_gmt":"2023-01-24T12:56:15","slug":"shortcode-to-transform-a-variable-product-into-a-table","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/shortcode-to-transform-a-variable-product-into-a-table\/","title":{"rendered":"Shortcode to Transform a Variable Product into a Table"},"content":{"rendered":"

Our WooCommerce variations table plugin<\/a> offers multiple shortcodes, that you can use in single pages.<\/p>\n

Single Product Shortcode<\/strong><\/h2>\n

The following Shortcode can be used to transform a variable product into a variations table:<\/p>\n

[woocommerce_variations_table product=\"PRODUCT_ID\"]<\/pre>\n

The product parameter expects the ID of the Main Product. You can also leave out the product argument and our plugin uses the current post object:<\/p>\n

[woocommerce_variations_table]<\/pre>\n

Multiple Products Shortcode<\/strong><\/h2>\n

To show multiple variation products by their ID use the following shortcode:<\/p>\n

[woocommerce_variations_table products=\"PRODUCT_ID1,PRODUCT_ID2,PRODUCT_ID3\"]<\/pre>\n

Category Shortcode<\/strong><\/h2>\n

To show all variable products by a category ID use the following shortcode:<\/p>\n

[woocommerce_variations_table category=\"PRODUCT_CATEGORY_ID\"]<\/pre>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-667","faq","type-faq","status-publish","hentry","faq_topics-variations-table-shortcodes"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":4,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/667\/revisions"}],"predecessor-version":[{"id":13991,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/667\/revisions\/13991"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}