Search found 8 matches
- 21 Feb 2024, 13:55
- Forum: Laravel package
- Topic: Basket empty after login
- Replies: 9
- Views: 107471
Re: Basket empty after login
when you try to log in in another browser or on another device, the basket will be empty. I think this is expected behavior as the session ID and cookies are different, is there any update on this in the aimeos versions? Or I need to change this behavior by overwriting the getSession/setSession() m...
- 21 Feb 2024, 13:13
- Forum: Laravel package
- Topic: persisting basket data between different customer sessions?
- Replies: 2
- Views: 27651
Re: persisting basket data between different customer sessions?
Thanks for the fast and helpful reply.
Making an extension to extend the original order manager seems like the way to go if this is the default behavior (and the shop will only support registered users).
Making an extension to extend the original order manager seems like the way to go if this is the default behavior (and the shop will only support registered users).
- 21 Feb 2024, 12:01
- Forum: Laravel package
- Topic: persisting basket data between different customer sessions?
- Replies: 2
- Views: 27651
persisting basket data between different customer sessions?
Hi, Using: - aimeos/aimeos-headless (2023.10.10) - PHP 8.2 - Laravel v10.40.0 - using an external auth provider (Keycloak); requests from frontend include a Bearer token auth. header + csrf token Scenario: - authenticated user adds items to basket - items are present in mshop_order_basket with the c...
- 26 Jan 2024, 06:44
- Forum: Laravel package
- Topic: properly extending the User model?
- Replies: 8
- Views: 12445
Re: properly extending the User model?
Thank you for pointing me in the right direction. I now have a customer/partner manager with working create, find, search ... this is fine for managing new partners but I'm still a bit confused on how to add partners to a customer (if I manually add a record to usesr_list I see a working relation on...
- 24 Jan 2024, 11:39
- Forum: Laravel package
- Topic: properly extending the User model?
- Replies: 8
- Views: 12445
Re: properly extending the User model?
Thank you.
Is this covered anywhere in the documentation?Because you don't use the users_list table to reference the partners or using a parent/child relationship between the users and the users_partner table, you have to instantiate the customer/partner manager and fetch the items yourself.
- 23 Jan 2024, 13:01
- Forum: Laravel package
- Topic: properly extending the User model?
- Replies: 8
- Views: 12445
Re: properly extending the User model?
$customer = $manager->create([ 'customer.email' => time().'@test.com', 'customer.name' => $decodedToken->name, 'customer.company' => $decodedToken->name, 'customer.password' => '', 'PartnerNo' => 12231, ]); Yes this works with a decorator ... however it breaks jsonapi & jqadm api. Error on: /ad...
- 23 Jan 2024, 07:22
- Forum: Laravel package
- Topic: properly extending the User model?
- Replies: 8
- Views: 12445
Re: properly extending the User model?
I'm also having trouble saving the new field: $item = $manager->create([ 'customer.email' => time(). '@test.com', 'customer.name' => $decodedToken->name, 'customer.company' => $decodedToken->name, 'customer.password' => '', 'customer.PartnerNo' => '12345' ]); $manager->save($item); $item->setModifie...
- 22 Jan 2024, 13:40
- Forum: Laravel package
- Topic: properly extending the User model?
- Replies: 8
- Views: 12445
properly extending the User model?
Hi, Using: aimeos/aimeos-headless (latest) PHP 8.2 Laravel v10.40.0 How should one approach this: I need to add a new table user_partners and modify the existing users table with a new field PartnerNo (users.PartnerNo - user_partnes.PartnerNo). I have a migration for both tables (that does what it i...