Comments and votes when it is the first vote

  • Posts: 180
  • Thank you received: 13
11 years 11 months ago #55868

When comments and votes are linked (Choose which module you want to enable=Vote & Comment Connected), when there is no previous vote, i.e. we are the first person voting on the item, clicking on the stars displayed a message to enter a comment, but the stars stay on zero, which means you can not enter a vote. If there is a previous vote, the functionality is OK.

Also the message says "to valid your vote ..." it should be "To validate your vote ..."

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

  • Posts: 81851
  • Thank you received: 13138
  • MODERATOR
11 years 11 months ago #55908

Thank you for your feedback.

I transferred your message to Xavier who is in charge of the votes and comments system and will answer you on Monday.

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

  • Posts: 130
  • Thank you received: 2
  • Hikashop Business
11 years 11 months ago #56102

Maybe in addition to this: It seems the submit butto below the comments form has a default value of "Send", and cannot be translated.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #56152

Hi esotechie,

I changed the message.
You can correct the bug by editing the file:
YourSite/media/com_hikashop/js/vote.js

And replace:

rating = this.selectBox.getElement('option[value!=]').getAttribute('value');
&&
if(current && this.options.defaultRating != 0)
By:
rating = 0;
&&
if(current && rating != 0)

The following user(s) said Thank You: esotechie

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #56155

Hi simonkloostra,

For the translation, you can edit the file "vote / form.php" in HikaShop > Display > Views.
And replace:

echo JText::_('OK');
By:
echo JText::_('HIKASHOP_SEND_COMMENT');

And then in HikaShop > Configuration > Languages, edit the file in your language and add the line:
HIKASHOP_SEND_COMMENT="Send a comment"

You can replace the text in quote by what you want.

The following user(s) said Thank You: simonkloostra

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

  • Posts: 180
  • Thank you received: 13
11 years 11 months ago #56182

Thanks Xavier.

Seems to have done trick :) I will give it a full test later this week.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum