---
title: Line item discounts automatically rolled up on order import
date: 2026-02-26
description: Line: Discount values on line items are now summed into an order-level discount during import, preventing data loss on store-to-store migrations.
tags: ["Orders","Imports","Discounts"]
categories: ["Changelog"]
url: https://www.getaltera.com/changelog/2026-02-26-line-item-discount-rollup/
---
Previously, `Line: Discount` values on line item rows were silently ignored during order import because the Shopify API does not support per-line-item discounts. This meant discount information could be lost when exporting orders from one store and importing them into another -- particularly for orders with automatic discounts or script-based discounts that don't have a discount code.

---

### 🚀 What's New

- **Automatic discount rollup** -- when line items have `Line: Discount` values but no explicit Discount row is present, the discount amounts are now automatically summed and applied as an order-level fixed discount.

### 🔧 How It Works

- Line item discount amounts are collected from all `Line Item` rows that have a `Line: Discount` value
- The absolute values are summed into a single order-level fixed-amount discount
- If an explicit `Discount` row is already present in the spreadsheet, it takes priority and line item discounts are not rolled up -- the Discount row already captures the total discount for the order, so rolling up both would double-count
- Negative values (as shown in exports) are handled automatically

