Favorite list

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!
traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: Favorite list

Post by traiyani75 » 13 Jul 2020, 15:06

Very well. Please update me pls whenever its done

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

Re: Favorite list

Post by aimeos » 11 Aug 2020, 18:02

How to manage favorite and watched products (as well as other relations) is now documented here:
https://github.com/aimeos/aimeos-docs/b ... lations.md

The generated docs from that source will look nicer but in the meantime this should help to get it implemented.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: Favorite list

Post by traiyani75 » 18 Aug 2020, 05:16

Thank you, I checked it.
For my case, when we call customer end points, we are not getting link for relationships. It is returning following links only
"links": {
"self": "http://ebdaa-ecommerce-beta.mzadqatar.c ... mer?id=323",
"customer/address": {
"href": "http://ebdaa-ecommerce-beta.mzadqatar.c ... ed=address",
"allow": [
"GET",
"POST"
]
}
},
.

And when I tried to call API to add relationships for favorite product like this
API : http://ebdaa-ecommerce-beta.mzadqatar.c ... ationships

request : {"data": [{ "attributes": { "customer.lists.domain": "product", "customer.lists.type": "favorite", "customer.lists.refid": "9", "customer.lists.datestart": null, "customer.lists.dateend": null, "customer.lists.config": {}, "customer.lists.position": 0, "customer.lists.status": 1 } }]}
It is added relation with customer, which I can see when I call get request on relationships api: below one
http://ebdaa-ecommerce-beta.mzadqatar.c ... de=product

So, Only issue is that relationships link is not coming into customer endpoint.

Questions
How do I add extra information of product along with product id?
Also Will these relationships support localization?

Thanks

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: Favorite list

Post by traiyani75 » 25 Aug 2020, 08:36

Hello guys, Do we have any update?

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

Re: Favorite list

Post by aimeos » 25 Aug 2020, 09:17

traiyani75 wrote: 18 Aug 2020, 05:16 So, Only issue is that relationships link is not coming into customer endpoint.
This is only available in dev-master and and the latest 2020.07.x-dev branch yet.
traiyani75 wrote: 18 Aug 2020, 05:16 How do I add extra information of product along with product id?
You can add arbitrary information in the "customer.lists.config" object.
traiyani75 wrote: 18 Aug 2020, 05:16 Also Will these relationships support localization?
The relationships itself doesn't contain any localized information and you should not write any localized strings into the config field. You can add key/value pairs to the config and translate the keys and values in the frontend or you store the localized strings and product texts.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply