Any API for on review got voted useful/useless?

  • Posts: 175
  • Thank you received: 0
9 years 10 months ago #157689

Hello

is there any API that i could use to do something when user's vote get voted useful/useless?

so for example i put a review on a product, and if someone voted that my review is useful/useless, then do something

i've tried searching www.hikashop.com/support/documentation/6...r-documentation.html
but didnt find anything like that

any suggestion?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #157695

Hi,

You can use the function "onAfterVoteUpdate($element, $useful)" in your plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 175
  • Thank you received: 0
9 years 10 months ago #158004

thanks
i tried to var_dump the $element

but there isnt any parameter i could use to add points to the reviewer
[reviewer post review, someone liked that review and reviewer get something]


[the user_id is the one who liked the review, not reviewer's user id]
any suggestion?

Last edit: 9 years 10 months ago by veeco.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #158059

Hi,

This kind of reward is not possible at this time. It will require an edition in the vote class in order to add datas to the trigger.
If you have enough PHP knowledges, you can add it thanks to a core edition.

I add this on our TODO list.

The following user(s) said Thank You: veeco

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum