- πΊπ¦Ukraine proweb.ua
Does not work if the commerce module is used and comments are attached to the product
The rating field for a product is not updated after adding a comment with a rating I just tried using this inside a paragraph.
I had setup a fivestar field "field_fivestar_parent" on the parent node, and I added an entity reference field in the paragraph targeting that parent node, and the field "field_fivestar_parent".
Didn't work.In the comments above, I guess using "entity_id" works because the comments use that.
For other structures that are not comments, setting up an entity reference field pointing to a parent node and then targeting the parent node's fivestar field doesn't work for some reason.
- Status changed to Needs work
about 1 year ago 10:31am 7 January 2024 - π¬π§United Kingdom effortDee
Came back to update that I was having problems with another site.
The Field Storage Vote Type must be the same for both the comment and the node.
I created one called Food Review Fivestar in the Vote Type admin area but only selected this for the comment/review but not for the node and could not get this target bind working until I realised this.
And yes, "entity_id" should be put in exactly like that for the comment to bind to the node.
Documentation needs updating!