Hi, since Tuesday evening (approx 7pm GMT) our method of passing cart attributes from our cart form into orders has suddenly stopped working.
We have not changed code on this page (or elsewhere) at this time.
We are following the instructions correctly according to this: https://shopify.dev/themes/architecture/templates/cart#cart-attributes
I can see in our dev tools, that the hidden fields are picking up the values from cart page correctly, but they are not getting passed through to the orders.
Is there anything that could have changed on the server side to have affected this? It's very strange that this has suddenly stopped working.
It is having a major effect on our operations, as the information that was passed through is vital for our fulfilment and finance operations to function.
We still do not have a resolution on this, but have found that it only affects the live theme 'slot' on our store.
So the issue cannot be anything to do with the theme code itself, it is just whether it is published as live or not.
We've been trying to find differences between the two, and can see that in both instances – live and preview – on the cart form submission, the cart attributes are sent correctly in the form submission payload.
We can also see on the first user interaction with the checkout page a GraphQL request is sent to `/checkouts/unstable/graphql`.
On the preview theme in the payload, the cart attributes are still there.
On the live theme in the payload, the cart attributes array is empty.
I am attaching screengrabs of the differences we see in dev tools between the live theme and the preview theme.
There must be something happening between the cart form submission and the checkout page, or on the checkout page itself.
As we are on Shopify Advanced we do not have any control over this stage of the purchase process, and this is completely controlled by Shopify, However we are not getting any response as to why this is happening.
Experiencing the same issue in our store after July 20th, 2023.
After the date, some reservations are coming in empty on these custom attributes all of a sudden.
No code changes have been done on our end since June 29th, 2023.
We are seeing multiple reports from different sources with the same issue online on different dates since last year, has anyone gotten any replies from Shopify about it?
We had minor issues prior to July 20th, but around that same date is when we saw a major reversal with about 90% of orders missing attributes. I did reach out to Shopify support---but was told it was the Giftship app I use. The developers of the app are "positive" it's not them and I have deleted extra unnecessary code, uninstalled another app----and am still having issues. It is horrible!
We are pretty certain we resolved this based on feedback from another Shopify user. This is the information they sent me that resolved the problem for them, and we have our developer implement it. We are at a week, with 100% of our cart attributes feeding though again!
Thank you for your reply.
The Shopify AJAX API doesn't seem to me as something related to the issue but obviously, they could have released something else silently at that time which had affected us.
Also, the quantity field issue fixed by your dev does sound like it was actually a theme-related issue in your case whereas the original issue mentioned by the topic starter is definitely an issue caused by Shopify.
Yea, I beleive you are correct on all of those.
However, the issue was minimal to non-existent prior to early to mid-July and we have had the same theme since April 2020, and had made no other website changes in recent months. So something had to change, and this was the solution so it may be helpful to someone else searching for problems with Cart Attributes. Good luck!