Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8810891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:13:44+00:00 2026-06-14T03:13:44+00:00

This is cross posted from the shopify api forum- I have an app that

  • 0

This is cross posted from the shopify api forum-

I have an app that relies on identifying the cart order as it is created, and then matching up that id with any order that comes in (assuming that a cart ultimately becomes an order). Per @HunkyBill’s advice, this is accomplished by reading the ‘cart’ cookie. This does work, however it seems like a fragile way to do something that seems like it should be done with the cart object. I have two questions:

What happens if the user has cookies turned off (is there no way then to access cart id while it is still a cart.. pre-order)?

and

Is it possible to simply add the CartId as a variable to the cart object?

Every other object has its own id, which can be accessed through Liquid… EVERY one. Except for the cart object- which is the ONLY object that links directly to another object, the Order. I do fully understand that Shopify may need a cookie variable to perform some of its functionality- and I am not suggesting modifying that process in any way. However the addition of the Cart Id to the cart object would solve all of these issues (for app developers) and provide a simple way to line up cart activity with converted orders. It also would not affect any products already built using the cart cookie.

If there is a better solution/technique for identifying a cart and then later associating it with a order, I am all ears. I am a bit stunned that this critical functionality (essentially tracking conversion) is not handled in a more robust and consistent way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:13:46+00:00Added an answer on June 14, 2026 at 3:13 am

    If the user has cookies turned off, then you’re hosed regardless. They won’t be able to build a cart without the session id from the cookie.

    For the cart: You’re correct, on the front end the liquid cart object doesn’t have the token included. It’s only available through the cookie.

    This is for a couple of reasons for the omission:

    • First, there’s only ever one cart active in a view at the time, so there’s no need to differentiate it while rendering a page.

    • Second: Within the context of the view, the token is meaningless. The user is never going need to see it.

    Personally I don’t buy the argument that relying on cookies for data is fragile. Indeed, the cart variable that pops up in liquid is loaded based on the session id found in the very same cookie.

    That said, I can’t think of a good reason for it NOT to be included in the liquid object. I’m going to file it as a low priority feature request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: I am cross-posting this from App Engine group because I got no answers
This is cross-posted from the coursera functional programming course because there's a lot less
Cross-posted from the Cukes Google Group: I have experimented with a number of methods
This is cross-posted on the ggplot2 google group My situation is that I'm working
I posted this question on the Qt forum, but got no answers. That's why
This will be cross posted on R's mailing list. I have the map as
I just came a cross this nice code that makes this scatter matrix plot:
I have set a property across threads before and I found this post Cross-thread
I'm cross-posting this from the wordpress section, b/c I think the problem lies more
This is already cross-posted at MS Connect: https://connect.microsoft.com/VisualStudio/feedback/details/560451 I am attempting to override the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.