Shortcodes
Tutorials | WooCommerce

How to Use WooCommerce Shortcodes (with Full List)

Having a WooCommerce store and not knowing about the WooCommerce shortcodes is a common problem for market owners. Knowing them will help those eCommerce Store owners a great deal in setting up and managing their store.

How to use WooCommerce shortcodes

Before we show you the list of WooCommerce shortcodes, you need to first know how to use them. Because, applying a WooCommerce shortcode is easy.

Go to WP Admin->Pages-> Add New.

Select the “Shortcode” block from the blocklist. Then, add your preferred shortcode. It is as simple as that.

how to use WooCommerce Shortcodes

List of Shortcodes

WooCommerce shortcodes are small code snippets that you can place anywhere in your site to display WooCommerce products or display the checkout page. There is a multitude of uses for these. So we have decided to collect all the shortcodes and place them in one table for your convenience.

Shortcodes

Task

Description

[woocommerce_order_tracking]

This shortcode will display the Order Tracking page

You can easily view the the page with details of your order

[woocommerce_checkout]

This shortcode will display the checkout page

You will easily visit the checkout page

[woocommerce_cart]

This shortcode will demonstrate the customer’s cart.

Used on the cart page, the cart shortcode displays cart content and interface for coupon codes and other cart bits and pieces.

[woocommerce_my_account]

This shortcode shows the user account page

Shows the ‘my account’ section where the customer can view past orders and update their information

[woocommerce_product_search]

Shows a live Product Search Field that shows results while the customer types.

Use this shortcode to show an input field which displays matching results while the customer types.

[woocommerce_product_filter] 

Shows a live Product Search Filter

When your user is typing, it will show a live product search filter.

[woocommerce_product_filter_attribute] 

Shows a live Product Attribute Filter

When your user is typing, it will show a live product attribute filter.

[woocommerce_product_filter_category]

Shows a live Product Category Filter.

When your user is typing, it will show a live product category filter.

[woocommerce_product_filter_price] 

Shows a live Product Price Filter

When your user is typing, it will show a live product price filter.

[woocommerce_product_filter_tag]

Shows a live Product Tag Filter

When your user is typing, it will show a live product tag filter.

[woocommerce_product_filter_rating]

Shows a live Product Rating Filter.

When your user is typing, it will show a live product rating filter.

[woocommerce_product_filter_sale]

shows a live filter for Products On Sale

When your user is typing, it will shows the product on sale

[woocommerce_product_filter_reset]

Shows a button to clear all live filters

The user can clear all the filters by clicking the button.

[woocommerce_product_filter_products]

 Shows the products like on the shop page

works together with the live Product Filters.

[woocommerce_product_filter_context]

Determines the current filter context 

It limits the products displayed with the [woocommerce_product_filter_products] shortcode and related live filters used.

[product_category]

Will display products in a specified product category

You can display your product categories on any page with a specified product category

[product_categories]

Will display all your product categories.

You can display all your available products with all the categories

[shop_messages]

Sllows you to show WooCommerce notifications

Example: "The product has been added to cart"

Wrapping Up!

Shortcodes in WooCommerce allows you to add a various type of functionality to your post, pages, widget, sidebar, etc, without typing any code. However, the shortcodes that we have listed, you can use these shortcodes for your Cart, Checkout and My Account pages, etc. to display the content apart from WooCommerce.

Check Open Shop WooCommerce Theme Review

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *