> For the complete documentation index, see [llms.txt](https://docs.wpblockslider.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wpblockslider.com/guides/how-to-create-woocommerce-product-slider.md).

# How to create WooCommerce Product Slider

Learn how you can create a WooCommerce product slider using block slider query.

In this guide i'm going to demonstrate how you you can create a product slider with WooCommerce and block slider.

## Setting up WooCommerce

This guide is going to assume that you have **WooCommerce** products setup and ready to create a product slider.

{% hint style="success" %}
If you haven't setup WooCommerce yet. You can read the "[Start with Woocommerce in 5 Steps](https://woocommerce.com/document/start-with-woocommerce-in-5-steps/)".
{% endhint %}

## Block Slider WooCommerce Support

Block slider provides WooCommerce Query support out-of-the-box so you can filter the products based on the stock status or sale status.&#x20;

You can also insert woo commerce blocks directly in the query slider and it'll inherit the current product automatically.

## Setting up a Product Slider

Simply navigate and create a query slider if you haven't already (read the article below to learn how to use a query slider).&#x20;

{% content-ref url="/pages/RL3iYzxswQrV91OUUz46" %}
[How to use Query Slider](/guides/how-to-use-query-slider.md)
{% endcontent-ref %}

### Step 1: Selecting the post type

Now, Let's set the query post type to "product" created by woocommerce.

<figure><img src="https://3694299641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUEEQh1Vd0ZKu8KuTMrN2%2Fuploads%2FuhJv6iEQCwVNL5uRx9L7%2FScreenshot%202023-08-22%20at%201.25.06%20PM.png?alt=media&amp;token=3a0abe88-aa7b-4d83-94b9-1012c860b561" alt=""><figcaption><p>selecting the post type</p></figcaption></figure>

### Step 2: Inserting the blocks

You can now insert woo commerce blocks directly inside the slide to inherit and display the current product details.

<figure><img src="https://3694299641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUEEQh1Vd0ZKu8KuTMrN2%2Fuploads%2FISQ1AZtt9TFaUMc3W0uW%2FScreenshot%202023-08-22%20at%201.26.23%20PM.png?alt=media&amp;token=69e734cf-2e97-4362-9b2d-9af7dd96054d" alt=""><figcaption><p>inserting woo blocks</p></figcaption></figure>

### Step 3 (Optional): Modify/Tweak WooCommerce Query

When you select the post type "product", Block slider displays an additional panel specifically for WooCommerce providing you more flexibillity to modify/tweak woo commerce related queries.

<figure><img src="https://3694299641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUEEQh1Vd0ZKu8KuTMrN2%2Fuploads%2FPtINuZTQFOICirERJ73Y%2FScreenshot%202023-08-22%20at%201.29.37%20PM.png?alt=media&amp;token=d3c288f1-e815-4b1e-8146-c34f3e9c8f20" alt=""><figcaption><p>woo query controls</p></figcaption></figure>

Let me go through what each control does in the WooCommerce query control

1. **Show Sale Product:** When this is toggled on, block slider will only query the products that are on sale (means the product that has a certain discount).
2. **Stock Status:** You can filter the products based on their stock status using this control.

## Wrapping Up

Creating a product slider is really easy with block slider. You can further customise the product query if you have a more complex query need with the following filter.

{% content-ref url="/pages/Gm8WXeKL1sq6VPwlLmpJ" %}
[blockslider\_query\_args](/hooks-and-filters/blockslider_query_args.md)
{% endcontent-ref %}
