Open gil-- opened 1 year ago
+1 for this 👍🏻
This is a necessary feature since the alternative is empty attributes in the order, which is not great. +1
+1
According to the latest AMA, adding this API is not planned
https://discord.com/channels/842813079926603828/1159538499070984243
+1
+1, empty attributes can cause issue for some merchants
+1
+1
+1
Please list the related package(s)
checkout-ui-extensions
If this related to specific APIs or components, please list them here
Is your feature request related to a problem? Please describe.
Unless I'm overlooking something, we can't remove cart attributes currently. Only
updateAttribute
is exposed which means even using an empty string keeps the attribute and we can't setnull
sincestring
is expected.Describe the changes you are looking for
Add
removeAttribute
interface which has a payload like:Similar to the removeMetafield or removeNote change apis.
Describe alternatives you’ve considered
Tried setting to null or empty string but cart attribute remains.
Additional context
See https://github.com/Shopify/ui-extensions/blob/main/packages/checkout-ui-extensions/src/extension-points/api/standard/index.ts#L167