When Shopify Cart is 1st created and can be accessed by its ID using API?
When Shopify cart is first created? Is it when new user first enters the site on Shopify or when first item is put into cart? When can I first access cart by ID in API calls to change numer of products in?
I'm going to have private Shopify application which will handle and store user files uploaded. User will pay for processing files. In fact one product for shop, user will have one product in cart, but count will change depending on how much files he wants to process. I need to associate uploaded files with user, respective cart, cause user data first entered when checking out the cart. Cart ID seems to be OK for me for that case.
When first item goes into cart... cart token is created. Until then you're SOL. I use a dirty ajax call to prime the pump for me.. ensuring that token exists.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.