bagisto / headless-ecommerce

Laravel Headless eCommerce APIs allow you to experience seamless and easily scalable storefront performance. An open-source and GraphQL based Rest API Laravel platform delivering ultra-fast, dynamic, and personalized shopping experiences.
https://bagisto.com/en/headless-ecommerce/
MIT License
78 stars 46 forks source link

Cart Details Are Empty for Guest Users #281

Closed ajayjoshioutdosolutions closed 1 month ago

ajayjoshioutdosolutions commented 2 months ago

I have encountered an issue where cart details are not being displayed correctly for guest users. Here’s a summary of the problem:

1. Steps to Reproduce:

Add items to the cart without logging in. Attempt to access the cart details.

2. Expected Behavior:

The cart details should display the items that were added.

3. Actual Behavior:

The cart details show an empty or null response for guest users. The cart functionality works as expected for logged-in users.

Additional Information:

Cart items are successfully added when the user is not logged in. The issue is specifically with retrieving and displaying cart details for guest users.

Environment:

Bagisto 2.2.2 GraphQL Headless

Please suggest what might be going wrong or if there might be a missed configuration. I have followed the instructions for installing the GraphQL Headless package.

mayank-webkul commented 1 month ago

@ajayjoshioutdosolutions This issue has been resolved.

Commit Link:- Here