Problem on adding product to basket

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
bar_on
Posts: 15
Joined: 28 Jul 2024, 01:45

Problem on adding product to basket

Post by bar_on » 08 Aug 2024, 08:25

I have problem retrieving session from previous api calls. The get basket api call after adding product to basket returns empty basket.

I found that in local environment the response header of jsonapi changes after adding products.
basket api local header.png
basket api local header.png (97.94 KiB) Viewed 6948 times
jsonapi loca header.png
jsonapi loca header.png (71.82 KiB) Viewed 6948 times
This does not happen in the official demo of aimeos.
jsonapi demo header.png
jsonapi demo header.png (80.41 KiB) Viewed 6948 times
Version:
"aimeos/aimeos-laravel": "~2023.10",
"php": "^8.1.0",

User avatar
aimeos
Administrator
Posts: 8620
Joined: 01 Jan 1970, 00:00

Re: Problem on adding product to basket

Post by aimeos » 08 Aug 2024, 08:27

Make sure the same Laravel session cookie is sent along with each request to make.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply