Vote and rating system

  • Posts: 42
  • Thank you received: 0
12 years 7 months ago #43549

Hi! I installed the 1.5.7 version of hikashop and tried to enable voting for products. On the top of the product page, it shows no stars but (0) only.. Am I missing something?
Thanks

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 7 months ago #43736

Hi,

Could you do a screenshot of the problem as well a the settings you used to enable the voting system ?

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

  • Posts: 42
  • Thank you received: 0
12 years 7 months ago #43859

Hi Nicolas. In image 1 you can see what is displayed on the product page instead of the rating stars.
In image 2 are the settings in the vote tab of the configuration. I also enabled "Display vote for products" from the display tab and "Display votes" for the relevant content menu item.
Thanks.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
12 years 7 months ago #43933

Hi,

We are not able to reproduce your problem.
Could you give me a link to the page ?

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

  • Posts: 42
  • Thank you received: 0
12 years 7 months ago #43947

Hello Xavier. I have PM you the link to the page.
Thanks in advance.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 7 months ago #43953

You have edited your CSS before installing the new release of HikaShop, so some CSS are missing.
You have to add this CSS in your custom CSS file via the Display tab of the configuration:

.ui-rating{
	margin:auto;
	float:left;
}

.ui-rating-star {
	 width: 16px;
	 height: 16px;
	 font-size: 2px;
	 display:inline-block;
	 text-decoration: none;
	 vertical-align: bottom;
	 background-image: url('../images/star.gif') !important;
	 background-repeat: no-repeat;
}
.ui-rating a {cursor: pointer; background-color: transparent !important;}
.ui-rating-full  {background-position:left top;}
.ui-rating-mid  {background-position:left -16px;}
.ui-rating-empty {background-position:left -32px;}
.ui-rating-hover {background-position:left -48px !important;}

.hikashop_vote_full_stars {
	 width: 16px;
	 height: 16px;
	 font-size: 2px;
	 display:inline-block;
	 text-decoration: none;
	 vertical-align: bottom;
	 background-image: url('../images/star.gif') !important;
	 background-repeat: no-repeat;
	 background-position:left top;
	 cursor: default;
}

.hikashop_vote_empty_stars {
	 width: 16px;
	 height: 16px;
	 font-size: 2px;
	 display:inline-block;
	 text-decoration: none;
	 vertical-align: bottom;
	 background-image: url('../images/star.gif') !important;
	 background-repeat: no-repeat;
	 background-position:left -32px;;
	 cursor: default;
}

/* Vote & Comment & Useful comment */
.hikashop_vote_notification{
	display:inline;
	color:grey;
}

.hikashop_comment_textarea{
	display:block;
	height: 67px;
	margin:auto;
	border:1px solid #ddd;
	border-right:1px solid #ccc;
	border-bottom:1px solid #ccc;
	color:#666;
	border-radius:4px;
	margin-top:5px;
	margin-bottom:10px;
	padding:5px;
	width:390px;
}

.hikashop_comment_textarea:hover, .hikashop_comment_textarea:focus{
	background-color:#fafafa;
	border:1px solid #dbe6ed;
	border-right:1px solid #bdd1dc;
	border-bottom:1px solid #bdd1dc;}

.hikashop_vote_stars{
	width: 400px;
}

.hikashop_total_vote{
	float:left;
}

.hikashop_vote_form{
	margin: auto;
	text-align:center;
}

.hikashop_vote_listing{
	width:400px;
	min-height: 67px;
	border:1px solid #eee;
	border-right:1px solid #ddd;
	border-bottom:1px solid #ddd;
	background-color:#f5f5f5;
	margin:5px auto;
	padding:auto;
	color:#90b1c3;
}

#hikashop_product_vote_form{
	margin:10px auto auto auto;
	width: 400px;
}

.hikashop_vote_listing_username{
	margin-left:6px;
	font-weight:bold;
}
.hikashop_vote_listing_useful{
	float:right;
}
.hikashop_vote_listing_useful_bought{
	margin-right:30px;
}
.hikashop_vote_listing_useful_note{
	margin-right:10px;
}
.hikashop_vote_listing_comment{
	padding:5px;
	background-color:white;
	min-height: 40px;
	color:grey;
}
.hikashop_vote_listing_useful_vote{
	margin-right:6px;
}
.hikashop_vote_listing_notification{
	margin-left:3px;
	color:white;
}

#hikashop_product_vote_listing{
	margin-top:20px;}


#hikashop_product_vote_form input{
background-color:transparent;
border:1px solid #ddd;
border-right:1px solid #ccc;
border-bottom:1px solid #ccc;
color:#666;
border-radius:4px;
padding:2px 3px;
margin-bottom:3px;
}

#hikashop_product_vote_form input:hover, #hikashop_product_vote_form input:focus {
	background-color:#fafafa;
	border:1px solid #dbe6ed;
	border-right:1px solid #bdd1dc;
	border-bottom:1px solid #bdd1dc;}

#hikashop_product_vote_form table{
	margin:auto;
	color:#666;}

.hikashop_vote_listing_pointer{
	cursor: pointer;
}

.hikashop_vote_listing:hover{
	width:400px;
	min-height: 67px;
	border:1px solid #BCC7D6;
	background-color:#BCC7D6;
	margin:5px auto;
	padding:auto;
	color:#90b1c3;
}

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

  • Posts: 42
  • Thank you received: 0
12 years 7 months ago #43955

That`s weird.. I haven`t removed that piece of code from my CSS file..
That fixed the problem Xavier.
Many thanks for your help!

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

  • Posts: 167
  • Thank you received: 8
  • Hikashop Essential
12 years 7 months ago #44604

:) as usual outstanding work from the team :)

I have modified my product show.php under the views tab so the voting system doesn't work at the moment, which bit of code do I need to place in the show.php to get the voting and comments to show up? I have already added the CSS to my modified css view.

Many Thanks

Ian

Last edit: 12 years 7 months ago by ianspeed.

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 7 months ago #44767

You can try to add that code:

<div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing">
		<?php
		if($this->params->get('show_vote_product')){
			//LAYOUT listing of the comments for this product
			$js = '';
			$params = null;	//Params already existing in the previous getLayout('vote', ...)
			echo hikashop_getLayout('vote', 'listing', $params, $js);
			?>
	</div>
	<div id="hikashop_product_vote_form" class="hikashop_product_vote_form">
			<?php
			//LAYOUT form to send a comment & vote
			$js = '';
			$params = null;
			echo hikashop_getLayout('vote', 'form', $params, $js);
		}
		?>
	</div>

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

  • Posts: 167
  • Thank you received: 8
  • Hikashop Essential
12 years 7 months ago #44858

Thanks Nicolas, brilliant that worked a treat! :) Also need to just show the rating if possible, have tried many ways but kept failing as I'm not as good at coding as you guys are!

Many Thanks

Ian

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 7 months ago #44859

It's that code:

<div id="hikashop_product_vote_mini" class="hikashop_product_vote_mini">
		<?php
		//LAYOUT show the rating stars
		if($this->params->get('show_vote_product')){
			$js = '';
			$params = null;
			$this->params->set('vote_type','product');
			if(isset($this->element->main)){
				$product_id = $this->element->main->product_id;
			}else{
				$product_id = $this->element->product_id;
			}
			$this->params->set('product_id',$product_id);
			echo hikashop_getLayout('vote', 'mini', $this->params, $js);
		}
		?>
	</div>

The following user(s) said Thank You: ianspeed

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

  • Posts: 167
  • Thank you received: 8
  • Hikashop Essential
12 years 7 months ago #44866

Thank you Nicolas... :) I'll get my customer to donate or try and persuade her to buy the full package!

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

  • Posts: 3
  • Thank you received: 0
10 years 3 months ago #163529

Hi,

I am somehow unable to show the vote and rating star on frontend. The total votes within braces is only visible and not the stars.
PFA the screenshot of frontend, backend & firebug code. This is very important and urgent for me.

Previously someone else has been working on it and I am not able contact him.

Any help would be greatly appreciated.

Please let me know if you need additional information.

Thanks.

Attachments:

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

  • Posts: 3
  • Thank you received: 0
10 years 3 months ago #163530

Hi,

I am somehow unable to show the vote and rating star on frontend. The total votes within braces is only visible and not the stars.
PFA the screenshot of frontend, backend & firebug code. This is very important and urgent for me.

Previously someone else has been working on it and I am not able contact him.

I have tried everything I could find on google.

Any help would be greatly appreciated.

Please let me know if you need additional information.

Thanks.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #163531

Hi,

Thanks to update your HikaShop version :)
We fixed many things about this. When updating, thanks to make a backup before.

If you are not able to update, thanks to check if you don't have a javascript error thanks to your browser console.

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

  • Posts: 3
  • Thank you received: 0
10 years 3 months ago #163610

I tried updating it but still getting the same result. Please advise.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #163613

Hi,

If that don't solve the issue, that's potentially because a vote view was edited, so you still have the old version instead of the new one.
Thanks to backup the views and reset them, you can do that via the menu Display > Views of HikaShop.
Then it should be working fine, if not, we will need a backend access to your website.

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

Time to create page: 0.127 seconds
Powered by Kunena Forum