Magazine

WooCommerce Shortcodes

Posted on the 11 November 2021 by Wbcom Designs @wbcomdesigns

WooCommerce accompanies different shortcodes that can be utilized to put content inside posts and pages. All shortcodes work effectively just when they are appropriately inserted. Kindly carefully insert WooCommerce shortcodes.

How to use shortcodes

Where to use it?

Shortcodes can be used on the pages and posts in WordPress. On the block editor that you are using the shortcode manager, there is a shortcode block you can use to paste the shortcode in.

Shortcodes

If you are using the classic editor, you will have to paste the shortcode on the page or post.

Args (or Arguments)

A few of the shortcodes below will refer to “Args”. These are approaches to make the shortcode more explicit.

WooCommerce Shortcodes for Page

Below is the following shortcode for WooCommerce pages:

Also Read:How to Create a Dating Website Using WordPress Plugins

1. Cart Page: Woocommerce cart shortcode shows cart content and coupon codes and other cart details.

[woocommerce_cart]

Cart Page

2. Checkout Page: Woocommerce checkout shortcode shows the checkout process detail.

[woocommerce_checkout]

Checkout Page

3. Order Tracking: Woocommerce order tracking shortcode permits the client to see the situation with the order by entering their order details.

[woocommerce_order_tracking]

Order Tracking

4. User Account: Woocommerce my account shortcode shows the ‘my account’ area where the client can see past requests and update their detail.

[woocommerce_my_account]

User Account

Woocommerce products shortcodes

The Woocommerce product shortcode is the most significant. These [products] shortcodes permit you to show items by post ID, random sorting, categories, attributes, with support for pagination, SKU, and product tags, replacing the need for multiples shortcodes such as [best_selling_products], [featured_products], [product_attribute], [sale_products], [recent_products], and [top_rated_products] and many more.

Also Read: Benefits of Building an Open-Source Knowledge Base

1. Recent Products: It shows the arrangements of recent products added to your WooCommerce site. It is exceptionally helpful on the landing page for the show late items. The ‘per_page’ shortcode decides the number of items to show on the page. The sections trait controls the number of segments shown on-page for products.

[recent_products per_page=”12″ columns=”4″]

WooCommerce Shortcodes

2. Featured Products: It works equivalent to recent products yet shows items that have been set as “featured”. The shortcode is saying: Show 12 highlighted items in 4 segments in succession.

[featured_products per_page=”12″ columns=”4″]

WooCommerce Shortcodes

  • Product: Show a single product by ID and SKU.

[product id=”2285″]

WooCommerce Shortcodes

[product sku=”logo-collection”]

WooCommerce Shortcodes

  • Products: Show multiple products by ID and SKU.

[products ids=”2321, 2287, 2286, 2285″]

WooCommerce Shortcodes

[products skus=”Woo-beanie-logo, woo-polo, woo-long-sleeve-tee, woo-hoodie-with-zipper” orderby=”date” order=”desc”]

WooCommerce Shortcodes

Product Category shortcodes

These two WooCommerce category shortcodes will show your product categories on any page.

  • [product_category] – Display a specified product category.
  • [product_categories] – Display all your product categories.

Product Category: Use the code to show different products in a category by slug.

WooCommerce Shortcodes

[product_category category=”Hoodies”]

WooCommerce Shortcodes

Conclusion

Storemate-Dokan

I trust this article assists with knowing you about some more WooCommerce shortcodes. On the off chance that if you have any further inquiries, be glad to ask me within the feedback part below.

We hope you liked this article. If you have any suggestions for us, let us know in the comments below. You can also follow us on social media platforms like Twitter, Instagram, and Facebook.

Interesting Reads:

How to Create a Dating Website Using WordPress Plugins

BuddyX Theme Review: An Ideal Free Social Membership Theme

Top-Rated eLearning Tools for Creators


Back to Featured Articles on Logo Paperblog