> For the complete documentation index, see [llms.txt](https://shoppad.gitbook.io/uploadery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shoppad.gitbook.io/uploadery/set-up-and-manage-upload-fields/adding-a-cost-to-a-conditional-upload-field.md).

# Adding a Cost to a Conditional Upload Field

Uploadery doesn't have a built-in way to charge extra for a file upload. To add a cost, you'll rely on our other app, Infinite Options, and combine two features: a conditional trigger option (like a checkbox or dropdown) that reveals the upload field, and a bundled add-on product that carries the cost. This guide walks through setting both up together.

{% hint style="warning" %}
This setup requires both Uploadery and [Infinite Options](https://apps.shopify.com/custom-options) installed on your store.
{% endhint %}

## Step 1: Create the trigger option in Infinite Options

In your **Infinite Options** dashboard, create a new option with a checkbox, dropdown, or radio button option. This is the option customers will select to request the upload (for example, label it "Add custom image" or "Upload your artwork", etc.)

{% hint style="info" %}
Follow [this guide](https://shoppad.gitbook.io/infinite-options/welcome/create-custom-options) to learn how to setup step 1!
{% endhint %}

## Step 2: Add a cost to the option value

Click the price tag icon next to the option value you want to charge for (for example, "Yes"). This bundles a product to that value, adding its price whenever the customer selects it.

You'll need a product already created in your store to represent this add-on cost. We recommend labeling the option value with the price for transparency, for example "Yes +$5".

{% hint style="info" %}
Follow [this guide](https://shoppad.gitbook.io/infinite-options/welcome/native-bundling#how-to-add-a-cost-to-an-option) to learn how to setup step 2!
{% endhint %}

## **Step 3: Assign the Uploadery field to your Infinite Options option set**

In your Uploadery dashboard, open the upload field's assignment section and choose Infinite Options as the identifier.

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

Then, in the **Infinite Options** dashboard, go to your Option Set and click the **Add Option** button.

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

Select **Import from Uploadery** in the list and select the Uploadery option set you've assigned to Infinite Options to bring it into your Infinite Options setup.

<figure><img src="/files/3w89EJXddgescnzaJYIb" alt=""><figcaption></figcaption></figure>

## Step 4: Create conditional logic to display the upload field based on a Yes selection

In the **Infinite Options** Option Set, click the eye icon on the upload field you just added to the option set to configure your conditional logic condition.

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

Click the Add condition button and configure the fields as follows:

* **Label on Cart**: Select the option associated with your add-on selection.
* **Operator**: Contains
* **Value**: Select the "Yes" value or whatever value is associated with the add-on product.

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

This tells Uploadery to only display the upload field when the customer selects that option.\
\
Click Save.

## Step 5: Test on the storefront

Preview mode inside the Infinite Options dashboard **won't** reflect the conditional upload field correctly.

Visit the live product page on your storefront to confirm the upload field appears only after the trigger option is selected, and that the add-on cost is applied.

{% hint style="info" %}
Always test on the live storefront, not the dashboard preview, when conditional Uploadery fields are involved.
{% endhint %}

## Technical Notes

* Infinite Options can't change the base price of a product directly. The cost here comes from bundling a separate add-on product to the option value.
* The upload field itself can't be edited from within Infinite Options once imported. Make changes to it in Uploadery.
