Voting without drop down menu

  • Posts: 49
  • Thank you received: 0
11 years 4 months ago #113960

Is it possible to hide the drop down menu for voting? By default it shows a drop down menu next to the images (stars) for voting for a particular product.

When looking at the demo of Hikashop there isn't a drop down menu next to the images for voting. So it is possible, but i don't know how to accomplish this?

Attachments:

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

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

Hi,

You can display the select via css, with a property like:
.hikashop_vote_stars select{display: none;}

It should bne hidden by default, but there is maybe a javascript error which cancel the hide of the dropdown via javascript

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

  • Posts: 49
  • Thank you received: 0
11 years 4 months ago #114042

Thanks for the reply. It is weird because i didn't edit any css so far. But where can i find the appropriate file to add the line?

How can i figure out if it is a javascript error? And how to fix this?

Thanks in advance.

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

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

To edit the css, you can follow this tutorial:
www.hikashop.com/fr/support/documentatio...ize-the-display.html

Regarding the Javascript error, you can use your browser console, go in the tab javascript to see which javascript error could cause that.

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

  • Posts: 49
  • Thank you received: 0
11 years 4 months ago #114116

Either I can't find the correct line or the adjustment to the css file is not working. Could you be more precise about the exact line to add?

Ohh, and it ain't a javascript error though

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

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

You have to edit the frontend css file in HikaShop > Configuration > Display > CSS.
And add the following line at the end:
.hikashop_vote_stars select{display: none !important;}

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

  • Posts: 49
  • Thank you received: 0
11 years 4 months ago #114182

There's no such line in config > display > css.
While im using the latest version of hs.

I tested on similar lines but nothing worked.

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

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

You have to add this code.
Another solution is to edit the view "vote / mini" and in the html for the "select" add style="display:none;"

You should have something like:
<select name="hikashop_vote_rating" style="display:none;" class="chzn-done" id="<?php echo $select_id;?>">

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

  • Posts: 4
  • Thank you received: 0
10 years 8 months ago #147500

i am having the same problem.

first i have this as the last line of my css_custom file in display-css and saved it:

.hikashop_vote_stars select{display: none !important;}

but it does not set the style "display" to none.

i also checked every instance of vote - mini and the "select" is like this:

<select name="hikashop_vote_rating" style="display:none;" class="chzn-done" id="<?php echo $select_id;?>">

in all of them.

i hace searched every css directory active on my site and cant find it, can you please advise?

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #147536

Hi,

Can you please provide a screenshot of your problem ?
The problem that we can see in the first screenshot of this thread show that the drop down is transformed by the "chosen" library.
Since, we added the class "chzn-done" to the classical select so the Chosen library shouldn't put his special content for these select.

If you have chosen dropdown for the votes, I think we should deactivate the chosen library or see why this library initialize his dropdown on "select" which have already the class "chzn-done".

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 35
  • Thank you received: 1
10 years 7 months ago #152212

I added this to a custom style sheet, worked for me to remove the annoying dropdown menu next to the voting stars

#select_id_1_hikashop_main_div_name_chzn{
display: none !important;
}


Thank you for your time!

Sincerely,
Brandon Cardone, Card One Concepts
The following user(s) said Thank You: Xavier

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #152222

Hi,

Thanks to have shared your solution. That can be useful for the other users.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum