> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.syncspider.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Update Shopify Stock Adjustments - Help Center - SyncSpider

Shopify has recently made changes that affect how stock adjustments work. The previous “**Deduct Quantity**” option is being phased out, so you will need to switch to “**Adjust Stock**” to maintain proper inventory adjustments.

As a result, SyncSpider users must update their Stock Update tasks to ensure they continue to function correctly. If you currently use SyncSpider to manage inventory adjustments with Shopify, please review the steps below to adjust your configuration.

**TABLE OF CONTENTS**

* [Steps to Update Your Shopify Stock Adjustment Configuration](#Steps-to-Update-Your-Shopify-Stock-Adjustment-Configuration)
* [Step 1: Switch from "Deduct Stock" to "Adjust Stock"](#Step-1%3A-Switch-from-)
* [Step 2: Set Up a Calculated Field](#Step-2%3A-Set-Up-a-Calculated-Field)
* [Step 3: Configure Calculated Field for Stock Deduction](#Step-3%3A-Configure-Calculated-Field-for-Stock-Deduction)
* [Additional Resources](#Additional-Resources)

---

## Steps to Update Your Shopify Stock Adjustment Configuration
---
### Step 1: Switch from "Deduct Stock" to "Adjust Stock"
###

Open the Target Configuration screen in the SyncSpider task where you deduct stock.

![](https://storage.crisp.chat/users/helpdesk/website/-/d/0/0/1/d001044c5c9f880/69d14f6b-3c64-4bb0-9a1e-c3edbe_1jahjtj.png)

Find the **Choose** **Stock Adjustment Method** menu.

![](https://storage.crisp.chat/users/helpdesk/website/-/b/2/c/7/b2c7b87220158000/8278c4fa-5549-4f94-a995-cd3333_p48hve.png)

Select "**Adjust Stock."** This option will replace "Deduct Stock," which will soon be deprecated.

---
### Step 2: Set Up a Calculated Field
###

Navigate to your **Mapping screen** and add a **Custom Field** by clicking the **plus sign (+)** located at the bottom left of the screen.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/6/3/1/2631f56fd7f78400/687ea5fd-c6d0-4971-b613-f12457_nh80lr.png)

###

Select **Calculated Field** from the options.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/5/6/5/85652c776317a800/3f63722b-b66a-473e-bf5d-0e7069_16ut6dl.png)

---
### Step 3: Configure Calculated Field for Stock Deduction
###

Once you’ve selected the calculated field, you’ll need to set it up to convert stock quantities to negative values (for example, changing 1 to -1).

This configuration allows Shopify to recognize these entries as deductions from your original stock levels. This is especially useful for scenarios where returned items are sent back to Shopify; negative values will automatically adjust and add these returns back to your stock balance.

To configure this:

Start by selecting **Constant Value**, then set it to **-1** to represent the negative adjustment.

Click the **plus sign (+)** next to the constant value to add it to your calculation.

### 
###

Next, choose **Multiply** as the operator, which will apply the negative constant to your quantity.

****

![](https://storage.crisp.chat/users/helpdesk/website/-/5/6/e/f/56ef8fb02e22ec00/27b72d7c-cbff-428a-b7bf-a6f7c3_pdp64s.png)

Then add the original stock quantity field (in this case, `_items/item_quantity_`). This field may vary depending on your source integration, so ensure you select the one that represents your initial stock data.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/6/1/1/8611d35d64efc000/10f260f1-5438-4a4c-8683-789a56_1f37vmz.png)

When complete, your calculated field should display an expression preview similar to the one above.

`Finally, name your custom field, click **Done**, and proceed to map this field within your stock adjustment settings.`

---
## Additional Resources

**Learn more about SyncSpider's capabilities and how to optimize your Shopify integration with these additional resources:**

* [How to integrate Shopify](https://support.syncspider.com/en/support/solutions/articles/3000115557)
* [How to use Variations in Shopify](https://support.syncspider.com/en/support/solutions/articles/3000116004)
* [Mapping Shopify Discounts to Odoo with Custom Calculations](https://support.syncspider.com/en/support/solutions/articles/3000128765)
* [Handling Shopify Collection Mapping](https://support.syncspider.com/en/support/solutions/articles/3000116311)

---

**Shopify** is just one of the tools we support!

To check the list of the tools and features we support please click [here](https://syncspider.com/integrations/)!

If you don't see your favorite tool on our list, please take the time and send us the request [here](https://roadmap.syncspider.com/boards/integrations?sort=cached_votes_up) to create an integration for you or UP-vote if it's already on the list :)

We develop integrations based on the requests and up-votes :)

We hope that this covers everything. If you have any further questions or need additional clarification please reach out to us via [[email protected]](/cdn-cgi/l/email-protection#d7a4a2a7a7b8a5a397a4aeb9b4a4a7beb3b2a5f9b4b8ba) or our chat widget!