Can't use existing delivery address

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!
User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Can't use existing delivery address

Post by aimeos » 28 Nov 2019, 11:37

All outstanding 2019.10 fixes have been tagged now (including aimeos/aimeos-core: 2019.10.6).
Please remove the "x-dev" versions again and test if everything works now (delivery address and saving customer in JQAdm without modified flag if not changed).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Can't use existing delivery address

Post by MikaelNazarenko » 28 Nov 2019, 12:13

isModified method seems working perfect, I checked for customer exactly. But there is problems with delivery address:

1. It always duplicates existing delivery address after checkout. I mean it creates one more the same address.
2. When I select existing address, click next, then click back - no delivery address is selected.

These problems come because of addressid filed, it is not filled in Address fromArray and toArray methods. For now I fixed it for myself by extending Address and filling addressid.

My composer:

Code: Select all

   "aimeos/ai-admin-jqadm": "2019.10.x",
        "aimeos/ai-payments": "^2019.07",
        "aimeos/aimeos-core": "2019.10.x",
        "aimeos/aimeos-laravel": "2019.10.x",
My packages verisons:

Code: Select all

aimeos/ai-admin-jqadm                 2019.10.6 Aimeos ai-admin-jqadm extension
aimeos/ai-admin-jsonadm               2019.10.2 Aimeos ai-admin-jsonadm extension
aimeos/ai-client-html                 2019.10.9 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi              2019.10.2 Aimeos JSON API extension
aimeos/ai-controller-frontend         2019.10.3 Aimeos ai-controller-frontend extension
aimeos/ai-controller-jobs             2019.10.4 Aimeos ai-controller-jobs extension
aimeos/ai-gettext                     2019.10.1 Aimeos Gettext extension
aimeos/ai-laravel                     2019.10.2 Laravel adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-payments                    2019.10.1 Payment extension for Aimeos web shops and e-commerce solutions
aimeos/ai-swiftmailer                 2019.10.1 SwiftMailer adapter for Aimeos web shops and e-commerce solutions
aimeos/aimeos-core                    2019.10.6 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel                 2019.10.1 Professional, full-featured and high performance Laravel e-commerce package for online shops and complex B2B projects

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

Re: Can't use existing delivery address

Post by aimeos » 28 Nov 2019, 15:13

Thanks, we made "order.base.address.addressid" public in fromArray()/toArray() too now. Also, we've done one change in the HTML client to store that property in a better way.

Can you try again?

Code: Select all

composer req aimeos/aimeos-core:2019.10.x-dev aimeos/ai-client-html:2019.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Can't use existing delivery address

Post by MikaelNazarenko » 28 Nov 2019, 15:26

Ok, thanks, I will try!

HTML client: - which files have you changed ? did you change templates ? Because then I need modify my extension

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

Re: Can't use existing delivery address

Post by aimeos » 28 Nov 2019, 17:32

No, the checkout address delivery class only.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Can't use existing delivery address

Post by MikaelNazarenko » 28 Nov 2019, 17:37

Yes it works. Only one thing I noticed: if customer doesn't have existing delivery address there two options available like billing and create new, but no one selected by default. As I remember before like billing option was selected in this case by default.

Thank you so much !

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

Re: Can't use existing delivery address

Post by aimeos » 28 Nov 2019, 19:02

Initially, "like billing address" is still selected for both, logged in and guest users.
Do you already have data in your session?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Can't use existing delivery address

Post by MikaelNazarenko » 28 Nov 2019, 20:00

Nice! Now seems everything is fine) I hope))

So should I use dev versions ?

Code: Select all

"aimeos/ai-client-html": "2019.10.x-dev",
"aimeos/aimeos-core": "2019.10.x-dev",

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

Re: Can't use existing delivery address

Post by aimeos » 28 Nov 2019, 20:07

aimeos/aimeos-core has been tagged now (2019.10.7) to fix the problem.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: Can't use existing delivery address

Post by MikaelNazarenko » 28 Nov 2019, 20:53

So I can use "aimeos/aimeos-core": "2019.10.7" ?

but what is for "aimeos/ai-client-html": "2019.10.x-dev" ?

Post Reply