Request for new feature
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 12
- Joined: 30 Jun 2022, 10:10
Request for new feature
Good evening, your work on aimeos jsonapi is quite good. I've been using it for almost a month.
But when I want to change the service data in basket I get that I am not allowed to do that. For convenience, I request to add a feature to be able to update the service (payment/delivery) data in basket. Thank you for your availability
But when I want to change the service data in basket I get that I am not allowed to do that. For convenience, I request to add a feature to be able to update the service (payment/delivery) data in basket. Thank you for your availability
- Attachments
-
- Screenshot from 2022-06-30 17-14-57.png (10.96 KiB) Viewed 1795 times
Re: Request for new feature
Which request are you sending to the API (request URL and body)?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 12
- Joined: 30 Jun 2022, 10:10
Re: Request for new feature
url: {{BASE_URL}}/jsonapi/basket?related=service&relatedid=delivery
method: PATCH
body: {
"data": {
"id": "delivery",
"type": "delivery",
"attributes": {
"service.id": "3"
}
}
}
method: PATCH
body: {
"data": {
"id": "delivery",
"type": "delivery",
"attributes": {
"service.id": "3"
}
}
}
Re: Request for new feature
Should be possible but need to remove and add the delivery service again here:
https://github.com/aimeos/ai-client-jso ... andard.php
Are you able to create a pull request with the necessary code?
https://github.com/aimeos/ai-client-jso ... andard.php
Are you able to create a pull request with the necessary code?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 12
- Joined: 30 Jun 2022, 10:10
Re: Request for new feature
no, i don't know much about php
Re: Request for new feature
Because Aimeos supports multiple delivery and payment options per basket, the PATCH request may also look like:
The difference is the list ([{...}]) of options to pass but this can be optional.
Code: Select all
/jsonapi/basket?related=service&relatedid=delivery
method: PATCH
body: {
"data": [{
"id": "delivery",
"type": "delivery",
"attributes": {
"service.id": "3"
}
}]
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 12
- Joined: 30 Jun 2022, 10:10
Re: Request for new feature
still not working
- Attachments
-
- Screenshot from 2022-06-30 23-04-17.png (61.34 KiB) Viewed 1632 times
-
- Posts: 12
- Joined: 30 Jun 2022, 10:10
Re: Request for new feature
i forgot to show body request
-
- Posts: 12
- Joined: 30 Jun 2022, 10:10
Re: Request for new feature
- Attachments
-
- Screenshot from 2022-06-30 23-05-18.png (75.3 KiB) Viewed 1632 times
Re: Request for new feature
Support for PATCH method for basket services is now available in aimeos/ai-client-jsonapi:dev-master and will be part of the 2022.07 release:
https://aimeos.org/docs/master/frontend ... e-services
https://aimeos.org/docs/master/frontend ... e-services
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star