When subscribing to cart updates on a Shopify POS extension, the customer.note property is no longer available to access as it should be.. It always returns undefined when trying to fetch the data.
According to this set of docs, it should be available to access.
There is one exception to this - outlined below.
[!IMPORTANT]
This was working as normal until the 14th August 2024, but it's now stopped.
Subscribe to the cart changes in your POS extension
Assign a customer to the cart that has a note
Output the customer.note property somewhere within your POS tile - it'll return as null/undefined
The only way I can get this to work is if you do the following:
Subscribe to the cart changes in your POS extension
Assign a customer to the cart that does not have a note
Add a note to the customer within the POS device
Output the customer.note property somewhere within your POS tile - it'll return the note
However, if you then go back and update the newly added customer note, it will continue to render the old note added in Step-3.
Even when explicitly setting the customer on the cart via api.cart.setCustomer, it doesn't fetch the note.
Expected behavior
The customer.note property should return the note at all times based on the customer.note value that exists at the time of accessing that customer property, irrespective of when and how the customer note was added.
Please list the package(s) involved in the issue, and include the version you are using
Describe the bug
When subscribing to cart updates on a Shopify POS extension, the
customer.note
property is no longer available to access as it should be.. It always returnsundefined
when trying to fetch the data.According to this set of docs, it should be available to access.
There is one exception to this - outlined below.
Steps to reproduce the behavior:
customer.note
property somewhere within your POS tile - it'll return as null/undefinedThe only way I can get this to work is if you do the following:
customer.note
property somewhere within your POS tile - it'll return the noteEven when explicitly setting the customer on the cart via
api.cart.setCustomer
, it doesn't fetch the note.Expected behavior
The
customer.note
property should return the note at all times based on the customer.note value that exists at the time of accessing that customer property, irrespective of when and how the customer note was added.