How to cache customAttributies / lineItem.properties via Shopify iOS SDK Storefront app

dreamventure
New Member
2 0 0

Hey there,

I am developing Shopify iOS Native app on Swift by utilizing their iOS sample storefront app - https://github.com/Shopify/mobile-buy-sdk-ios-sample

I have more than 30 different colors, so I can only use one Color option, but I also need to be able to capture chosen Size. Since there is a limit for 100 variants, I can't add all 7 sizes without utilizing some 3rd party apps.

I have found that there is a way to use customAttributes during creating a checkout to save that data and pass it to admin backend when order is completed. However, I can't figure out how to save it locally on the phone to retrieve it later, in case they would close the app and open it again. Seems like it's not serialized during the flushing items in CartController.flush().

Does anyone know how to make it work?

Reply 1 (1)
dreamventure
New Member
2 0 0