Shortcodes included with WooCommerce

(Be sure to wrap the shortcode in square brackets [ ] when you want to render the shortcode.)

Shortcode

Test Pages

Description

Learn more

woocommerce_cart

Show the cart page.

woocommerce_checkout

Show the checkout page.

woocommerce_my_account

Show the user account page.

None yet

woocommerce_order_tracking

Show the order tracking form. Has attributes.

None

product_page

Displays a full single product page by ID or SKU

Custom product page templates can be made via store editing

products

Display products by specific parameters. Has attributes.

product_category

Display products in a specified category. Has attributes.

product_categories

Display product categories. Has attributes.

None yet

add_to_cart

Show “add to cart” button for a product. Has attributes.

add_to_cart_url

Get URL of “add to cart” for a product. Has attributes.

None

shop_messages

Show WooCommerce messages. Use when wanting to show shop messages on non-WooCommerce posts or pages.

0