Shortcodes are simple codes that add WooCommerce content to your pages. Here are some common ones:
- [woocommerce_cart] – Displays the cart page.
- [woocommerce_checkout] – Shows the checkout page.
- [woocommerce_my_account] – Displays the user account page.
- [products] – Lists products with options to filter by category, tag, or attribute.
- [product_page id="123"] – Shows a single product page (replace 123 with the product ID).
How to Use Shortcodes:
- Edit any page or post using the WordPress editor.
- Add a Shortcode block (or paste the shortcode into a Text block).
- Save and preview the page to see the result.
???? Tip: Find product IDs in WooCommerce → Products by hovering over the product name.