Strange issue in checkout

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
skydev
Posts: 18
Joined: 01 Jul 2021, 10:24

Strange issue in checkout

Post by skydev » 02 Mar 2022, 16:48

We are facing a strange issue in checkout

If anyone go to checkout and went to the summary/checkout page and again goes back to the basket page and modify product (add/edit product in cart then while making payment it only show the previous cart. It sometime works some time show error

we also tried to change address but sometime it show older address

we have check it in various versions of aimeos and facing this in almost all latest version

Reason may be cart it modify the session but after final checkout it save entry on order/base and all entries are forwarded based on order/base table not on session

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

Re: Strange issue in checkout

Post by aimeos » 03 Mar 2022, 09:23

We've seen that before in rare cases that the session doesn't seem to get stored or in case of MySQL, returning not the updated session content. Do you use "file" or "database" as Laravel session provider? The later one made problems in the past.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

skydev
Posts: 18
Joined: 01 Jul 2021, 10:24

Re: Strange issue in checkout

Post by skydev » 03 Mar 2022, 10:33

Its file based (as default provided by laravel)

Also kindly note that, it appears problem is not with session but storing data in

Code: Select all

Order/base
table and its reference tables

on updating again they give duplicate key issues and due to that it only allow not updating them in database

Edited:

Just to give more idea regarding the problem I m facing something similar to below link(which is also unsolved)

Saving Basket

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

Re: Strange issue in checkout

Post by aimeos » 04 Mar 2022, 07:36

What OS, PHP version, Aimeos version and database incl. version do you use?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

skydev
Posts: 18
Joined: 01 Jul 2021, 10:24

Re: Strange issue in checkout

Post by skydev » 04 Mar 2022, 10:14

As I mention earlier we have face this in multiple versions

Just for more info

We have checked it in
PHP 7.4 and PHP 8.0
Aimeos 2020.10, aimeos 2021.7 and aimeos 2021. 10
regarding OS we have check it CentOS , windows, Linux
Database: we have used MySQL or mariadb

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

Re: Strange issue in checkout

Post by aimeos » 04 Mar 2022, 10:24

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
РоманАндрейчук
Posts: 18
Joined: 13 Jan 2022, 15:08

Re: Strange issue in checkout

Post by РоманАндрейчук » 27 Sep 2022, 13:59

Hello. I'm having the same problem. When you change the localization, the trash is reset. When I return to the old locale, the items in the cart reappear. Sessions are stored in files.
Is there any solution to this problem?

php 7.4, aimeos 2021.10, laravel

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

Re: Strange issue in checkout

Post by aimeos » 28 Sep 2022, 11:36

If you change the language or currency, the basket is migrated to the new locale.
You can check here what happens during that migration:
https://github.com/aimeos/ai-controller ... #L124-L330
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply