Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

How do you verify discounts, gifts and free shipping together?

An offer can fail because the gift is absent, eligibility changed or a failed second code obscured an existing discount. Preserve the customer’s basket, then trace eligibility, item lines, allocations and shipping.

WESWOO · · 简体中文

Proceed by evidence
ObservationNext action
Reconstruct the offer the customer sawKeep the original journey and a clean-session comparison; identify whether the difference preceded or followed entry.
Check that the gift line existsFinal quantities and prices must match the visible explanation for removal or loss of eligibility.
Review sales impact and margin separatelyKeep functional acceptance separate from business results; incomplete costs or controls leave those conclusions unverified.

This is a WESWOO review procedure informed by merchant reports. Our public retest covers a fixed-amount frontend demonstration, not a live Shopify checkout. Store combinations, gift stock and final orders remain to be tested.

Use the review record

The workbook contains a blank record and an illustrative example. Fill the scope, observations, evidence, owner and next review. Unsupported results stay unverified.

Download the editable record and example (Excel)

This is a WESWOO review procedure informed by merchant reports. Our public retest covers a fixed-amount frontend demonstration, not a live Shopify checkout. Store combinations, gift stock and final orders remain to be tested.

Reconstruct the offer the customer saw

Save the entry URL, market, currency, time, variants and quantities. Ask which code worked earlier and what is due now. A fresh basket can erase the state needed to explain the complaint.

How to verify: Keep the original journey and a clean-session comparison; identify whether the difference preceded or followed entry.

Translate the promise into testable conditions

Record eligible products, customer limits, purchase type, time zone and per-order gift cap. Use an ineligible item as a control. Specify the exact gift variant and whether the customer or an app adds it.

How to verify: Write expected lines and discounts before testing one eligible and one ineligible basket.

Check that the gift line exists

Compare a basket containing only qualifying purchases with one also containing the designated gift. Native Buy X get Y does not insert the gift. For an auto-add app, test disqualification, requalification, removal and unavailable gifts.

How to verify: Final quantities and prices must match the visible explanation for removal or loss of eligibility.

Inspect product, order and shipping savings separately

Record applied discounts and allocations rather than adding percentages blindly. Test each discount alone, then the combination. If shipping savings fail, inspect both combination settings and the shipping conditions for the discounted basket.

How to verify: Reconcile item lines, merchandise subtotal, shipping and amount due independently.

Follow the actual mobile entry to checkout

Enter through the published campaign or creator URL. Try a valid code, repeat, invalid replacement and removal in the same basket. Test shipping thresholds and mixed ready/preorder items against actual checkout values.

How to verify: Record whether the previous discount survives the error, separately for each entry and checkout path.

Review sales impact and margin separately

After functionality passes, review gift costs, shipping subsidy, creator commission, advertising and refunds. Items bought in coded orders differ from items allocated the discount. Compare traffic and availability before claiming uplift.

How to verify: Keep functional acceptance separate from business results; incomplete costs or controls leave those conclusions unverified.

What the public demonstration verifies

On 26 November 2026, at phone and desktop widths, BAD, a valid code, the repeated valid code and BAD again produced $80, $72, $72 and $72. Removal restored $80. This fixed-amount frontend demo verifies feedback state, not Shopify checkout, gifting or shipping combinations.

Download the observations and test scope (JSON)

Continue with the relevant checks

A customer entered a bad code. How can support tell whether the previous discount is still there?

A shopper sees an existing discount, then tries another code. An error describes that attempt. To quote the price that remains, support needs the state of the cart after submission.

Ask which code worked earlier and what the current total is. Those details distinguish a failed attempt from removal of an existing discount.

In our $80 demo, BAD on a fresh cart left $80. Applying STUDIO10 and then entering the same BAD left $72. Both attempts show an error, but they call for different replies. Try the sequence in the linked preview.

Record the original allocations and merchandise subtotal before entering an invalid code. Use actual cart or checkout allocations to determine whether the prior discount survived.

For a live sale, follow the customer’s campaign link with the same item and market through checkout. Inspect the actual discount line and amount due. The demo does not determine eligibility, expiration or combination rules for the store.

When two regions finish a promotion on different dates, record one landing URL, one eligible product and the start and end times for each. After the earlier campaign ends, check its banner, product page and checkout. Recheck the active region before removing any shared campaign component.

Source: Shopify test orders
Sources

Shopify test orders

Related reading

Before a Storewide Black Friday Sale, Test the Offer with Shopify Rollouts

AI Can Read Product Discounts. What Does Your Compare-at Price Really Mean?

Shopify DTC Case Evidence and Operations

Back to the topic questions

Before increasing ad spend tomorrow, which cart should we test tonight?

An offer is attracting visitors and the team wants to raise spend tomorrow. If the usual variant cannot check out in the target market, additional traffic sends more shoppers to the same failure.

Take one ad URL, one eligible item and a target postcode through checkout before raising spend. Fix an unusable advertised offer before scaling it.

Start at the advertised destination and test baskets exactly at and just below the threshold. Record checkout allocations, currency and stock before scaling spend.

Agree budget permissions, approval, stop conditions and observation windows, including when to inspect orders after refunds. A tool executing successfully only establishes an operation. Keep teaching budgets, controlled samples and actual results separate rather than presenting examples as spending recommendations or promised returns.

Source: Shopify test orders
Sources

Shopify test orders

Related reading

Before a Storewide Black Friday Sale, Test the Offer with Shopify Rollouts

Shopify Campaign Autopilot: How to Set a Budget and Keep Control

Shopify DTC Case Evidence and Operations

Back to the topic questions

Why does shipping still cost money when a product discount and free-shipping code are used together?

WESWOO troubleshooting and acceptance procedure

A promotion advertises discounted goods and a free-shipping code. When shipping still appears, support needs to verify which discounts actually applied to this cart.

Try the shipping code alone, then together with the item discount while keeping cart and address fixed. Failure only in combination points to stacking eligibility.

  1. Separate standalone and combined tests

    Test the merchandise discount alone, free shipping alone and both together at one address. If both work separately, inspect combination settings. If free shipping never works, check destination, rate cap and threshold.

  2. Inspect both combination settings

    Open both discounts. The product discount must allow shipping discounts and the shipping discount must allow product discounts. Check the shipping code’s destination, minimum purchase and maximum eligible shipping rate.

  3. Check the actual rate and threshold

    Read the item and shipping lines separately. Record the code applied and the final shipping charge. Repeat with a basket just below the threshold so the team can explain exactly when shipping is due.

  4. Retest freshly generated codes

    If an email or loyalty app creates the code, identify that generator and inspect the next newly generated code. Fixing an old code does not establish that future campaigns work. Distinguish a zero-cost shipping rate from a shipping discount code: the rate has no discount-combination switch. Check the quoted rate against the discounted basket, address and delivery method.

Follow the result

Old code works, new code fails
Correct the generator or assign ownership, then test another new code.
Combination applies but shipping remains payable
Check the discounted threshold, destination, rate cap and service.

Confirm completion Keep two newly generated test codes and the three checkout comparisons. Test above and below the threshold, verifying both item savings and shipping payable.

The reported fix covered generated codes

haydeng reported that newly generated Klaviyo codes kept reverting to non-combinable settings. The original poster reported success after trying RM Combinable.

This is a historical app outcome reported by its user, without order-level evidence. It does not establish that the app is necessary today; inspect your current generator first.

haydeng · Shopify Community · 2025-01-29
Reasoning and conditions

Keep the item and address fixed. Preview checkout with the product discount alone, with the shipping code alone and then with both. This isolates a code that fails on its own from a combination that fails.

Source: Combining discountsSource: haydeng · Shopify Community · 2025-01-29
Sources

Combining discounts

haydeng · Shopify Community · 2025-01-29

Back to the topic questions

Why is the gift missing from the cart during a buy-two-get-one promotion?

WESWOO troubleshooting and acceptance procedure

An offer promises a free item with two purchases. The shopper adds two full-price products and waits. Whether the gift itself is in the cart affects whether the discount has an eligible line.

Place the qualifying purchase and the specified gift in the cart, then inspect the gift line. Promotion eligibility and automatic gift insertion are separate behaviors.

  1. Test qualifying items with and without the gift

    Compare an eligible basket with and without the designated gift line. If only the second receives a discount, explain the required addition before considering automated gift insertion.

  2. Inspect the gift-line discount

    For two coffee bags with a specified mug as the gift, try checkout with just the bags, then add the eligible mug. Once its line shows the expected discount, put the instruction to select the gift beside the purchase controls.

  3. Test how automatic gifting exits

    For automatic gifting, cross the threshold, reduce the basket below it, then qualify again. Record gift quantity and final price. Also test an unavailable gift, customer removal and mobile accelerated checkout. Agree whether losing eligibility removes the gift or clearly restores its price, so customers are not unknowingly charged for an item advertised as free.

Follow the result

Manual gift receives the correct discount
Inspect auto-add behavior or gift-selection guidance.
Gift remains free after basket value falls
Check eligibility loss and removal, then re-enter checkout.

Confirm completion Qualifying, disqualifying, requalifying and out-of-stock cases must match the offer. Final quantities, payment and the advertised promise must agree.

The merchant reported working automatic gifting

Avery_4 reported that enabling Buy X Get Y did not add the gift, then named AOV Free Gift & BXGY and reported normal, stable operation.

This is a merchant report, not our app endorsement or retest. The thread did not cover eligibility loss, unavailable gifts or accelerated checkout; test these at handover.

Avery_4 · Shopify Community · 2024-09-08
Source: Shopify Buy X get Y discountsSource: Avery_4 · Shopify Community · 2024-09-08
Sources

Shopify Buy X get Y discounts

Avery_4 · Shopify Community · 2024-09-08

Back to the topic questions

Why does a cart with two qualifying sets receive only one discounted gift?

The buyer qualifies on quantity twice and expects two gifts. An order-level use limit or just one eligible gift line can both leave a single discounted item.

Try one and two qualifying sets with the same gift variant. If only one benefit appears, compare the per-order limit with the gift quantity actually in the cart.

Record qualifying X and Y quantities and the per-order use limit. Test one set, two sets and a basket beyond the limit, then inspect which lines actually receive allocations.

Test four qualifying items and two eligible gifts. If the merchant intends one redemption per order, confirm that one gift receives the discount and the other remains at its regular price. State that cap in the offer.

Source: Shopify Buy X get Y discounts
Sources

Shopify Buy X get Y discounts

Back to the topic questions

How do we test “5 off each” versus “5 off the order” for three identical items?

An offer says “$5 off” and a buyer adds three units. An order-level discount can diverge from a per-item promise only when quantity goes above one.

For three eligible units, five off each means fifteen off. Five off once means five. Inspect the discount allocation and quantity.

Check allocations on a quantity-three line and on three eligible separate lines. Discount type and per-order limits determine the result; promotional wording alone does not.

At 30 per item with a discount of 5 and no other offers, three eligible units save 15 under a per-unit offer, or 5 under a once-per-order offer. Match the checkout discount total to the advertised wording.

Source: Shopify amount off discounts
Sources

Shopify amount off discounts

Back to the topic questions

How do we keep a timed promotion aligned across time zones?

WESWOO troubleshooting and acceptance procedure

A short promotion is emailed to several markets. Even matching calendar dates can yield an earlier cutoff in one market when local midnight or daylight saving changes intervene.

Compare the store discount, feed and announcement timestamps with explicit offsets. Start and end can use different offsets across a daylight-saving change.

  1. Record the store schedule

    Confirm the store time zone and record discount start and end date-times. State the city or zone in the announcement and give support the shopper-local equivalent.

  2. Convert endpoints independently

    Los Angeles midnight on November 1, 2026 is UTC−7; the following midnight is UTC−8. The interval is 25 hours. Convert each endpoint by date instead of adding 24 hours.

  3. Align feed and checkout

    Use full timestamps and offsets in Merchant Center sale_price_effective_date. Compare received data with the product page and checkout price. For stale ad prices, retain update time and processing status.

  4. Check either side of the boundary

    Keep market, product and eligibility fixed across the start and end. Leave one tab open across each boundary and compare it with a fresh or reloaded tab. Check banners, product price, cart and checkout in both. Convert the customer’s local midnight to the corresponding store time.

Follow the result

Local midnight but discount is unavailable
Compare the store and shopper instants.
Store sale ended but feed still shows it
Inspect the feed end timestamp, offset and processing.
A fresh page is correct but an old tab shows the sale
Inspect the display update and verify actual cart and checkout prices separately.

Confirm completion Retain both conversions and checkout observations. The 25-hour example can be reproduced with browser time-zone tooling; store discounts require a live-rule check. Keep boundary observations for both open and fresh tabs.

Open problem: correct times did not refresh an already-open sale page

saurabhv's Tuesday promotion used Liquid rendering, so an open page retained old banners and menus after midnight. The thread discusses timed updates; the author also asks how prices, menus and other components should switch together.

Our time-alignment procedure is a WESWOO proposal. Keep a tab open across the boundary as well as reloading, then compare banners, product prices, cart and checkout. A banner change alone does not establish an active discount.

saurabhv's midnight sale-state question · Shopify Community · 2026-11-05

How can a Tuesday sale menu switch at midnight in an already-open tab?

Liquid evaluated the weekday when the page was rendered. Recompute in the store’s time zone and update the banner and menu together. With the visitor in Shanghai and the sale in Los Angeles, the old snapshot stayed hidden at Tuesday midnight while both live controls appeared.

Pass the merchant’s IANA time zone and enable flag. Update both the announcement and navigation in the callback, refresh when visibility or page state changes, and call the returned cleanup when the section unloads.

Compare results, scope and replay code

Summer Monday to Tuesday in Los Angeles: snapshot hidden, live banner and menu visible.

After Wednesday, pageshow hid both entries. In winter the change from 07:59:58 to 08:00:00 UTC closed the sale at local midnight.

A controlled browser clock covered summer and winter offsets and a simulated return to an existing page. Sleep can delay painting. Checkout discounts and product prices remain server decisions.

function bindTuesdaySale(zone, update, enabled = true) {
  const weekday = new Intl.DateTimeFormat('en-US',{weekday:'short',timeZone:zone});
  let timer;
  function refresh() {
    clearTimeout(timer);
    update(enabled && weekday.format(new Date()) === 'Tue');
    timer = setTimeout(refresh,60000 - Date.now() % 60000);
  }
  document.addEventListener('visibilitychange',refresh);
  window.addEventListener('pageshow',refresh);
  refresh();
  return () => {
    clearTimeout(timer);
    document.removeEventListener('visibilitychange',refresh);
    window.removeEventListener('pageshow',refresh);
  };
}
// Example markup: <p data-sale-banner hidden> and <nav data-sale-menu hidden>.
const stopSale = bindTuesdaySale('America/Los_Angeles', open => {
  document.querySelectorAll('[data-sale-banner],[data-sale-menu]').forEach(el => { el.hidden = !open; });
});
// Call stopSale() on theme section teardown.

WESWOO tested Chrome 157.0.8103.79. In a clean directory with Node.js 22 or newer, run npm install playwright, then npx playwright install chromium, then node weswoo-clock.cjs.

Download replay script (.cjs)

Original question · MDN · Intl.DateTimeFormat · MDN · visibilitychange

How can a Tuesday sale menu switch at midnight in an already-open tab?

Reasoning and conditions

Supply the start and end of sale_price_effective_date with explicit time-zone offsets. Schedule the product page to offer the same sale price over that interval.

Source: Google Merchant Center · Sale price effective dateSource: Shopify amount off discountsSource: saurabhv's midnight sale-state question · Shopify Community · 2026-11-05Source: Shopify · Liquid timestamps and rendering cacheSource: Shopify · discount scheduling
Inspect the preserved example

Download the example record (JSON)

Sources

Google Merchant Center · Sale price effective date

Shopify amount off discounts

saurabhv's midnight sale-state question · Shopify Community · 2026-11-05

Shopify · Liquid timestamps and rendering cache

Shopify · discount scheduling

Back to the topic questions

A buy-one-get-one cart shows $140. Should the store cover shipping?

A basket appears to qualify for free shipping before a gift discount changes its subtotal. Before promising delivery, support needs the amount being compared and the exact threshold wording.

First work out the offer you actually promised. A $75 item and a $65 item total $140 before the second becomes free. The discounted merchandise total is $75. If the offer is free shipping at $99 after discounts, the basket is $24 short.

Those are the prices from the opening post. Shopify supports price-based rates and free-shipping discounts, with separate rules for combining discounts. Record the rate name, shipping profile, destination and discounts actually applied at checkout before changing a setting.

At one destination, test a basket without the gift, the reported gift basket and one at exactly $99.00 after discounts. Save merchandise subtotal, discount amount and offered rates for each. “Over $99” and “at least $99” give different answers at exactly $99.00.

The calculator tests two possible offer wordings in one currency, excluding tax and shipping. If checkout disagrees, retain the quoted rate and trace which configuration granted it. The discussion does not provide a verifiable checkout configuration.

How to test the threshold boundary
Discounted merchandiseAt least $99 / over $99
$75.00Neither qualifies; $24.00 short of the inclusive threshold
$99.00Inclusive qualifies; strict is $0.01 short
$99.01Both qualify
Source: Shopify Community · Merchant questionSource: Shopify · Discount combinationsSource: Shopify · Setting up shipping zones and rates

Download the example record (JSON)

Sources

Shopify Community · Merchant question

Shopify · Discount combinations

Shopify · Setting up shipping zones and rates

Back to the topic questions

A shopper clicked an ad and used a creator code. What is left on the order?

A shopper arrives through an ad and finds a creator code before checkout. The order can carry advertising cost, discounted revenue and commission. Its remaining balance and who acquired the shopper are distinct questions.

Put merchandise revenue after discounts, cost of goods, allocated ad spend and confirmed commission on one line. The price reduction is already reflected in revenue. Subtracting it again understates the balance. The financial calculation can proceed independently of who brought the customer.

The poster found their creator codes in search and described Meta ad costs alongside a 20% commission. Shopify documents trackable campaign links. Merchants using Shopify Collabs also have commission review records. Finding a code in search or on an order does not establish that shopper’s first touch. The poster did not identify their affiliate platform.

In the example, merchandise revenue after discount is $90, goods cost $45 and allocated ad spend is $18. A settlement showing $18 commission leaves $9 after these costs. A $20 commission leaves $7. Shipping, payment fees and other costs still have to come out of either balance.

Retain campaign parameters, the code on the order, the commission statement and the basis for allocating ads. Leave the order balance open if only campaign-wide spend is known. Assessing incremental sales needs a separate comparison. This calculation supplies no basis by itself to deny an earned commission.

How one piece of evidence changes the balance
Cost evidenceResult for this order
$18 allocated advertising and $18 settled commission$9 left after the listed costs
$18 allocated advertising and $20 settled commission$7 left after the listed costs
Advertising allocation is missingRecord the known costs and leave the balance open
Source: Reddit · Merchant questionSource: Shopify · Trackable campaign linksSource: Shopify · Creator payments in Collabs

Download the example record (JSON)

Sources

Reddit · Merchant question

Shopify · Trackable campaign links

Shopify · Creator payments in Collabs

Back to the topic questions

A €140 preorder and a €140 stock item ship separately. Which parcel earns free shipping?

The shopper pays once for an in-stock item and a preorder. The buyer sees one order, while the warehouse may pay postage on two shipments under the same free-shipping offer.

Read the unit in the offer. This merchant wanted free delivery when the goods in a shipment exceed €150. Two €140 shipments produce zero qualifying parcels under that policy. If the buyer agrees to wait for one €280 shipment, that parcel qualifies.

Shopify’s split-shipping documentation covers preorders alongside in-stock items and describes how delivery options affect rates. The cart total alone cannot tell you how a particular preorder app groups shipments or where this store evaluates its promotion. Write down the expected offer before starting a fresh test checkout.

We checked separate shipments, a combined shipment and the boundary. With “over €150”, a €150 parcel is one cent short and €150.01 qualifies. With “€150 or more”, both qualify. Settle the wording before changing rates.

In a test store, try an in-stock order, a preorder and a mixed basket using the same address, market and currency. Record shipment groups, offered services and the quoted shipping charge. Compare each group with the offer. These examples verify the policy arithmetic. The original store’s checkout requires its own configuration to reproduce.

When the promise says over €150 per shipment
Shipment planParcels meeting the threshold
€140 in stock and €140 on preorder ship apart0 parcels
Both items wait for one €280 parcel1 parcel
Two parcels at €150 and €150.01Only the €150.01 parcel
Source: Reddit · Merchant questionSource: Shopify · Split shipping in checkoutSource: Shopify · Test and troubleshoot shipping rates

Download the example record (JSON)

Sources

Reddit · Merchant question

Shopify · Split shipping in checkout

Shopify · Test and troubleshoot shipping rates

Back to the topic questions

Orders doubled from 10 to 20 during a promotion. Did the discount add ten orders?

A high-ticket auto parts merchant ran frequent promotions and wondered who would have purchased at full price anyway. A discount report describes how people checked out. Estimating additional purchases needs evidence about what would have happened without the offer.

Put traffic, purchasing sessions and code-bearing orders next to each other. In the example traffic doubles along with orders, while ten in every hundred sessions convert in both periods. The ten extra orders alone cannot quantify incremental lift.

Match channels, market, product scope, weekdays and attribution scope. Export online store sessions and converting sessions, then separately count orders with the chosen code. One session can yield several orders. Flag orders you cannot associate with a session.

Divide converting sessions by sessions for each period. The baseline has 10 conversions from 100 sessions and the promotion has 20 from 200, with 12 code-bearing orders. If the same 20 converting sessions came from 160 visits, the observed rate would be 12.5%.

Report redemptions, observed conversion change and evidence of lift separately. To decide whether to repeat the discount, plan a randomized comparable holdout before the next offer. Track assignment, code leakage and all purchases in both groups, plus stock and ad changes.

Test results
Sample conditionObserved result
100 and 200 sessions, each converting at 10%Orders double, observed conversion stays flat
One buying session adds another code-bearing order21 orders, 20 converting sessions, still 10%
Promotion has only 160 sessions20 converting sessions yield 12.5%
Promotion session total unavailable12 redemptions remain reportable, conversion rate stays blank
Reasoning and conditions

The fixture shows how the same order increase can accompany different conversion rates. Neither the example nor redemption counts identify the original shop's causal lift or which individuals would otherwise have bought.

Source: Reddit · Merchant questionSource: Shopify · Sales reportsSource: Shopify · Online store sessions and conversion
View records and verification query

Run the setup and query in an empty SQLite database. The rows are synthetic.

CREATE TABLE traffic(period TEXT PRIMARY KEY,sessions INT);
CREATE TABLE bought(period TEXT,session TEXT,order_id TEXT PRIMARY KEY,used_code INT);
INSERT INTO traffic VALUES ('base',100),('promo',200);
WITH RECURSIVE n(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM n WHERE x<20)
INSERT INTO bought SELECT 'promo','p'||x,'p'||x,x<=12 FROM n;
INSERT INTO bought SELECT 'base','b'||rowid,'b'||rowid,0 FROM bought WHERE rowid<=10;

SELECT t.period,t.sessions,COUNT(b.order_id),COUNT(DISTINCT b.session),
 ROUND(100.0*COUNT(DISTINCT b.session)/NULLIF(t.sessions,0),2),SUM(COALESCE(b.used_code,0)) FROM traffic t
 LEFT JOIN bought b ON t.period=b.period GROUP BY t.period ORDER BY t.period;

Download the example record (JSON)

Sources

Reddit · Merchant question

Shopify · Sales reports

Shopify · Online store sessions and conversion

Back to the topic questions

What did X-code shoppers buy, and which items actually received the X discount?

A merchant could identify products on single-item code orders but saw N/A for mixed baskets. They also wanted average spend. Labeling socks as discounted merely because they accompanied discounted boots can distort the next promotion.

Select orders using X first. Then list all basket lines and the subset actually allocated an X discount. Average spend per order uses distinct orders only.

Filter the exact code in redemption records and deduplicate order IDs. Specify whether spend means net merchandise or total paid with tax and shipping. Sample orders have merchandise net of 90 and 30 in the same currency, averaging 60.

Join all basket lines, then inspect each line's allocation source and amount. The boots received X while the socks received Y. Socks belong on the purchased-together list, without being an X-discounted item.

Check one stacked-code basket and one shipping-only use. A shipping discount can select an order while allocating nothing to products. Without line allocations, report the basket contents and leave benefit attribution unresolved.

Test results
Sample conditionObserved result
Two baskets, three lines, stacked code and duplicate redemptionX benefits 2 lines for 15, average order 60
Socks also get 1 from X3 benefited lines totaling 16
Second order used YOne X order averaging 90
X on order two covers shipping onlyStill 2 orders, product allocation falls to 10
Reasoning and conditions

The fixture assumes a complete allocation export, so absent allocations mean no X benefit on that line. Spend per order and spend per customer have different denominators; group by buyer for the latter.

Source: Shopify Community · Merchant questionSource: Line-item discount allocationsSource: Sales reports
Inspect sample records and query

Run the setup and query in an empty SQLite database. The rows are synthetic.

CREATE TABLE orders(id TEXT PRIMARY KEY,net_goods INT);INSERT INTO orders VALUES ('O1',9000),('O2',3000);
CREATE TABLE basket(id TEXT PRIMARY KEY,ord TEXT,sku TEXT);INSERT INTO basket VALUES ('a','O1','boots'),('b','O1','socks'),('c','O2','hat');
CREATE TABLE redemption(ord TEXT,code TEXT);INSERT INTO redemption VALUES ('O1','X'),('O1','X'),('O2','X');
CREATE TABLE allocation(line TEXT,code TEXT,cents INT);INSERT INTO allocation VALUES ('a','X',1000),('b','Y',200),('c','X',500);

WITH selected AS (SELECT * FROM orders WHERE EXISTS(SELECT 1 FROM redemption WHERE code='X' AND ord=orders.id)),
lines AS (SELECT b.*,COALESCE((SELECT SUM(cents) FROM allocation WHERE line=b.id AND code='X'),0) AS share FROM basket b JOIN selected s ON b.ord=s.id)
SELECT (SELECT COUNT(*) FROM selected),(SELECT AVG(net_goods) FROM selected),COUNT(*),SUM(share>0),SUM(share) FROM lines;

Download the example record (JSON)

Sources

Shopify Community · Merchant question

Line-item discount allocations

Sales reports

Back to the topic questions

Our creator link applies a discount. Why does campaign attribution disappear on the product page?

Shopify shareable discount links support a redirect destination. Encode the entire intended product path and its parameters as one redirect value, then verify item, campaign and discount separately.

One URL carries a discount, selects blue and identifies a campaign. A product URL with its own query sits inside another URL’s redirect value. An unescaped ampersand can split the wrong query.

  1. First test the product link with the real variant ID, utm_source=instagram and utm_campaign=launch. Verify the chosen item. Then use a URL parameter builder to place the entire path and query in redirect.

  2. Follow the distributed link in a clean session. Inspect the final request for the variant and both UTMs. In our local Chrome control, the unencoded destination retained only the variant.

  3. Take a qualifying item to checkout and inspect the applied discount. Try an ineligible basket as a control. Then verify campaign visits in reporting.

Nested discount URL · local Chrome control
CheckResult
Unencoded destinationThe local redirect reaches the variant. Both UTMs were parsed on the outer URL.
Encode whole destinationThe final request contains the variant, source and campaign.
Sources and conditions

The local test verifies nested URL parsing. Discount eligibility, market routing and attribution require store checks. A UTM does not prove the discount applied.

Shopify · shareable discount links and redirectsShopify Community · UTMs on discount redirects

Download the example record (JSON)

Back to the topic questions

Checks by symptom