# Integrate with Advanced Product Fields

With YayPricing, there is support for discounts on products which have extra options. This feature enables WooCommerce store owners to offer advanced product customization and flexible pricing options.&#x20;

Here’s how to set it up:&#x20;

* Step 1: Create custom product fields on Advanced Product Fields dashboard and assign this field group to products.&#x20;

If you don’t know how to set up Advanced Product Fields, you can follow [this tutorial](https://www.studiowombat.com/knowledge-base/getting-started-with-advanced-product-fields-for-woocommerce/).

<figure><img src="/files/ql0Ox8eYel1qy1X9yKal" alt=""><figcaption></figcaption></figure>

* Step 2: On the Product Pricing tab, you can set the pricing rule to apply to the product to which you have added extra product fields.

<figure><img src="/files/rGyz7ijgIPzdmOJNoxDB" alt=""><figcaption></figcaption></figure>

* Step 3: Move to the front end to see how this rule will be applied to extra fields.

<figure><img src="/files/j4FQjAa1Y23nqkuoGfTO" alt=""><figcaption></figcaption></figure>

The logic: As you can see, the extra fields charge an amount when added to the main product. This will increase the total price of this product. YayPricing rule will discount based on that total price, including the cost of the extra field.&#x20;


---

# 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/compatibility/integrate-with-advanced-product-fields.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.
