Request for new feature

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!
thisisbintang
Posts: 12
Joined: 30 Jun 2022, 10:10

Request for new feature

Post by thisisbintang » 03 Jul 2022, 10:33

Good evening, I want to change customer.address.position in the patch request aimeos jsonapi but it doesn't work.
I did a direct search of ai-client-jsonapi and aimeos/core source code to learn how the process of patch request works. All I get is confusion. I ask for your help to add a feature to change customer.address.position in the patch request. Thank you and consider.
Attachments
Screenshot from 2022-07-03 17-32-51.png
Screenshot from 2022-07-03 17-32-51.png (42.62 KiB) Viewed 867 times

thisisbintang
Posts: 12
Joined: 30 Jun 2022, 10:10

Re: Request for new feature

Post by thisisbintang » 03 Jul 2022, 10:33

and this is the response to the request
Attachments
Screenshot from 2022-07-03 17-33-03.png
Screenshot from 2022-07-03 17-33-03.png (7 KiB) Viewed 866 times

thisisbintang
Posts: 12
Joined: 30 Jun 2022, 10:10

Re: Request for new feature

Post by thisisbintang » 04 Jul 2022, 03:34

Aimeos version: 2022.04
PHP: 8.1.7
Linux system: Ubuntu 21.04

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

Re: Request for new feature

Post by aimeos » 04 Jul 2022, 13:58

The PATCH method for the basket/address resource is brand new and will be available in 2022.07+
Furthermore, you won't be able to change a single field like "order.base.address.position" because Aimeos supports adding several addresses. Instead, you have to pass the complete billing or delivery address(es) to the JSON API and it will remove the existing ones first and add the new ones afterwards - just like the new PATCH method for basket/service.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply