We have a Shopify app that merges products using a cart transform function. The app works correctly on multiple stores, but on one specific store, all line item properties come back as null when accessed inside the transform function.
- In the cart object (logged), line item properties are present and populated
- Inside the cart transform function, the same properties return
null - The issue is isolated to one store — identical code works on all other stores
Extension INPUT:
{
"cart": {
"lines": [
{
"id": "gid:\/\/shopify\/CartLine\/a75fa865-13cd-4101-ac71-adde91f15190",
"quantity": 1,
"variant": {
"id": "gid:\/\/shopify\/ProductVariant\/39784597094513"
},
"cost": {
"amountPerQuantity": {
"amount": "45.0",
"currencyCode": "USD"
}
},
"byobBundleId": null,
"byobParentId": null,
"byobGroupIndex": null,
"byobUniqId": null
},
{
"id": "gid:\/\/shopify\/CartLine\/4b7d5b0e-2f56-4746-a980-777b859b62ca",
"quantity": 1,
"variant": {
"id": "gid:\/\/shopify\/ProductVariant\/40237443088497"
},
"cost": {
"amountPerQuantity": {
"amount": "28.0",
"currencyCode": "USD"
}
},
"byobBundleId": null,
"byobParentId": null,
"byobGroupIndex": null,
"byobUniqId": null
},
{
"id": "gid:\/\/shopify\/CartLine\/eefc0cfd-fe3b-4cf6-be80-0803e9eda44f",
"quantity": 1,
"variant": {
"id": "gid:\/\/shopify\/ProductVariant\/15424009306225"
},
"cost": {
"amountPerQuantity": {
"amount": "86.0",
"currencyCode": "USD"
}
},
"byobBundleId": null,
"byobParentId": null,
"byobGroupIndex": null,
"byobUniqId": null
}
]
},
"cartTransform": {
"bundlesList": {
"type": "json",
"value": "{}",
"jsonValue": {}
}
}
}
byobBundleId: attribute(key: “_ByobBundleId”) {
key
value
}
byobParentId: attribute(key: “_ByobParentId”) {
key
value
}
byobGroupIndex: attribute(key: “_ByobGroupIndex”) {
key
value
}
byobUniqId: attribute(key: “_ByobUniqId”) {
key
value
}
Line items properties from cart object:
“properties”: {
“_ByobBundleId”: “199”,
“_ByobParentId”: “gid://shopify/ProductVariant/43051480383601”,
“_ByobGroupIndex”: “0”,
“_ByobUniqId”: “mmgdtqjpiwyr7ynnphl”
},