Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve Product Id from Cart Line Object. #1227

Open
harishvitta opened this issue Feb 1, 2024 · 5 comments
Open

Retrieve Product Id from Cart Line Object. #1227

harishvitta opened this issue Feb 1, 2024 · 5 comments

Comments

@harishvitta
Copy link

I am having an issue determining product ID from the Base Cart Line object. It contains Merchandise objects but none of the properties are exposed to determine product variant ID from it.

This will help me to know which products are in the cart and will enable me to perform edit qty and delete items from the cart.\

Is anyone else having the same issue while issuing a Cart object? It would be nice to have an updated sample application using a Cart instead of a Checkout object.

@harishvitta
Copy link
Author

Screenshot 2024-02-01 at 8 57 28 AM

@harishvitta
Copy link
Author

Hi Team,

Any one else have this issue? Some one can you please help me with this issue.

@EDMODJ
Copy link

EDMODJ commented Jun 14, 2024

Hi @harishvitta

I'm facing same issue. By now I can't figure out how to get the products in the cart. Did you solve it?

@harishvitta
Copy link
Author

@EDMODJ Merchandise holds the product information https://shopify.dev/docs/api/storefront/2024-04/unions/Merchandise.
this is sample how I retrieved product information from Merchandise instance of BaseCartLine Object
Screenshot 2024-06-14 at 2 37 36 PM

@EDMODJ
Copy link

EDMODJ commented Jun 14, 2024

@EDMODJ Merchandise holds the product information https://shopify.dev/docs/api/storefront/2024-04/unions/Merchandise. this is sample how I retrieved product information from Merchandise instance of BaseCartLine Object Screenshot 2024-06-14 at 2 37 36 PM

This do all the work !!! thank you @harishvitta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants