favorite product json delete not working
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!
favorite product json delete not working
I create delete request, but nothing happens. Errors not, but does not delete anything.
response:
Code: Select all
const url = '/jsonapi/customer?related=relationships&include=product&relatedid=' + id
$.ajax({
url: url,
method: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
}).done(function(result) {
console.log(result)
})
Code: Select all
{
"meta": {
"total": 0,
"prefix": null,
"content-baseurl": "http://shop.loc"
, "csrf": {
"name": "_token",
"value": "fIBH6KiZuCjDUOmrMbUYXlBoyRynflrywKJgmTpb"
}
},
"links": {
"self": "http://shop.loc/jsonapi/customer?related=relationships&include=product&relatedid=1",
"related": "http://shop.loc/jsonapi/customer?related=relationships&include=product"
}
}
- muhammadsiddiq
- Posts: 1
- Joined: 07 Sep 2023, 17:34
Re: favorite product json delete not working
Hello bro, did the issue got resolved ? i know its been 2 year +