Jsonapi delete basket service (delivery)

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!
Arth
Posts: 6
Joined: 02 Jun 2022, 09:34

Jsonapi delete basket service (delivery)

Post by Arth » 02 Jun 2022, 10:04

I trying to delete basket service delivery using jsonapi but service delivery still shown on the response. But when i delete basket service payment, the service payment deleted successfully. :?:
Attachments
image_2022-06-02_165857431.png
image_2022-06-02_165857431.png (65.99 KiB) Viewed 1486 times

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

Re: Jsonapi delete basket service (delivery)

Post by aimeos » 02 Jun 2022, 10:22

The service delivery item is automatically added again by the Autofill plugin (Setup > Plugins in admin backend) when the basket content changes, even after you delete the service delivery item. The Autofill plugin adds the first shipping option that is valid for the basket content. If you don't want that behavior, you can disable the Autofill plugin in the admin backend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Arth
Posts: 6
Joined: 02 Jun 2022, 09:34

Re: Jsonapi delete basket service (delivery)

Post by Arth » 02 Jun 2022, 10:29

Owh i got it. Thanks for your help

Arth
Posts: 6
Joined: 02 Jun 2022, 09:34

Re: Jsonapi add basket product

Post by Arth » 02 Jun 2022, 14:04

I also want to ask this response error.. when add product id 12 - 17 to basket using jsonapi.. why is not allowed :?:
Attachments
product.png
product.png (69.49 KiB) Viewed 1467 times
image_2022-06-02_210345794.png
image_2022-06-02_210345794.png (50.95 KiB) Viewed 1467 times

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

Re: Jsonapi delete basket service (delivery)

Post by aimeos » 03 Jun 2022, 18:57

The error occurs if a product isn't added to a category and therefore can't be bought:
https://github.com/aimeos/ai-controller ... ry.php#L53
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Arth
Posts: 6
Joined: 02 Jun 2022, 09:34

Re: Jsonapi delete basket service (delivery)

Post by Arth » 11 Jun 2022, 02:25

the products were added to the default by default but still not allowed.
Attachments
Opera Snapshot_2022-06-11_091918_localhost.png
Opera Snapshot_2022-06-11_091918_localhost.png (221.56 KiB) Viewed 1407 times

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

Re: Jsonapi delete basket service (delivery)

Post by aimeos » 12 Jun 2022, 05:36

I think we've found the problem. Can you please execute and test again:

Code: Select all

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

Arth
Posts: 6
Joined: 02 Jun 2022, 09:34

Re: Jsonapi delete basket service (delivery)

Post by Arth » 13 Jun 2022, 09:46

Thanks. its works

Post Reply