# Shortcodes

**Want to display information about your discounts on your landing page? Follow this guide!**

**YayPricing shortcode** are available in [YayPricing Pro](https://yaycommerce.com/yaypricing-woocommerce-dynamic-pricing-and-discounts/) and [Dynamic Pricing & Discounts Pro](https://woocommerce.com/products/dynamic-pricing-discounts/). &#x20;

Each pricing rule allows you to use a shortcode to display all assigned products, show offer descriptions, or add a countdown timer on specific pages. Additionally, you can use the Countdown shortcode to showcase the countdown timer for Cart discount rules.

Here are the steps to use the shortcode in your WordPress page/post.

#### Step 1. Copy shortcode

From product pricing or cart discount list, click on the three-dot icon on the right end of your pricing rule to open the actions menu. Select the shortcode that you would like to copy. <br>

<figure><img src="/files/nrtkS7AqdaCBxUcy5tiH" alt=""><figcaption><p>Product pricing shortcode</p></figcaption></figure>

<figure><img src="/files/QXkZYCTCgit7nh5lHQY3" alt=""><figcaption><p>Cart discount shortcode</p></figcaption></figure>

#### Step 2. Paste shortcode

Go to your page editor and paste the shortcode.

You can also paste multiple shortcodes on the same page.

<figure><img src="/files/PgBlM2Q5b2sQ57h4zdNB" alt=""><figcaption><p>Creating sale list</p></figcaption></figure>

Step 3. Publish page

Once your page is published, you will see the lists of products on sales discounts or dynamic pricing rules.

<figure><img src="/files/8qNIUyFYlPFpoZcaojxB" alt=""><figcaption></figcaption></figure>

Please note that whether or not the pricing rules are applied on checkout still depends on your other settings of **cart conditions**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaypricing/features/shortcodes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
