{"id":136,"date":"2016-05-30T15:37:39","date_gmt":"2016-05-30T15:37:39","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=136"},"modified":"2019-03-18T14:29:27","modified_gmt":"2019-03-18T13:29:27","slug":"shortcodes-included-with-woocommerce","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/shortcodes-included-with-woocommerce\/","title":{"rendered":"Shortcodes included with WooCommerce"},"content":{"rendered":"<p><!--more--><\/p>\n<pre class=\"EnlighterJSRAW\">[woocommerce_cart]<\/pre>\n<p>\u2013 shows the cart page<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[woocommerce_checkout]<\/pre>\n<p>\u2013 shows the checkout page<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[woocommerce_order_tracking]<\/pre>\n<p>\u2013 shows the order tracking form<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[woocommerce_my_account]<\/pre>\n<p>\u2013 shows the user account page<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[recent_products per_page=\"12\" columns=\"4\"]<\/pre>\n<p>&#8211; recent products<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[featured_products per_page=\"12\" columns=\"4\"]<\/pre>\n<p>&#8211; features products<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[product id=\"99\"]<\/pre>\n<p>or<\/p>\n<pre class=\"EnlighterJSRAW\">[product sku=\"FOO\"]<\/pre>\n<p>&#8211; show a single product<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[products ids=\"1, 2, 3, 4, 5\"]<\/pre>\n<p>or<\/p>\n<pre class=\"EnlighterJSRAW\">[products skus=\"foo, bar, baz\" orderby=\"date\" order=\"desc\"]<\/pre>\n<p>&#8211; show multiple products<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[add_to_cart id=\"99\"]<\/pre>\n<p>&#8211; add to cart button<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[sale_products per_page=\"12\"]<\/pre>\n<p>&#8211; on sale products<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[best_selling_products per_page=\"12\"]<\/pre>\n<p>&#8211; best selling products<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[top_rated_products per_page=\"12\"]<\/pre>\n<p>&#8211; top rated products<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\">[related_products per_page=\"12\"]<\/pre>\n<p>&#8211; related products<\/p>\n<p>&nbsp;<\/p>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/docs.woocommerce.com\/document\/woocommerce-shortcodes\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.woocommerce.com\/document\/woocommerce-shortcodes\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"[woocommerce_cart] \u2013 shows the cart page &nbsp; [woocommerce_checkout] \u2013 shows the checkout page &nbsp; [woocommerce_order_tracking] \u2013 shows the order tracking [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8],"tags":[206,234,269,327],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-plugins","category-woocommerce","tag-pages","tag-products","tag-shortcodes","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":54932,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/136\/revisions\/54932"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}