I need to disable voting in my store

ismaelte's picture
ismaelte
Fri, 12/16/2016 - 20:38
#1
I need to disable voting in my store

Hi Guys .. I want to disable all product voting five star in my site...in all the theme and views.
What i need to do?  Please help

Thanks in advance
Ismael

phuonght's picture
phuonght
Fri, 12/16/2016 - 21:45

Hi,

Please customize in files:

+ sites\all\themes\md_orenmode\template\views\products
+ node--product.tpl.php

ismaelte's picture
ismaelte
Sat, 01/21/2017 - 11:33

Guys,.. thanks for all your support.. i am really glad to be your client..

I need help for this issue i could disable voting in all my site but not in this view:

that is part of Block: Tabs block

Image title

In edit or configure i have only this oprtions:

Image title

And i look for a template here: sites\all\themes\md_orenmode\template\views\products but do not find any one.. could please tell me the exact name of the template or what exactly i need to do
Please?? thanks a lot in advance

khoa's picture
khoa
Mon, 01/23/2017 - 08:25

Hi Ismaelte,

Please give me your website link and website account.

Thanks!

khoa's picture
khoa
Tue, 01/24/2017 - 08:55

Hi,

Please go to sites/all/themes/md_orenmode/template/views/products/home_featured_products/v1/, open views-view-fields--products--block-2.tpl.php file, then comment/remove this code:

<span class="star">
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 20) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 40) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 60) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 80) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 100) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
</span>

Thanks!

ismaelte's picture
ismaelte
Thu, 01/26/2017 - 15:38

Worked perfect thanks.. but i need now to do the same in reccommended productos template, could you please tell me what
file i need to modify, thanks in advance:

Image title

khoa's picture
khoa
Wed, 02/01/2017 - 04:50

Hi Ismaelte,

Can you give me the link that shows the block above?

Thanks!

ismaelte's picture
ismaelte
Thu, 02/02/2017 - 16:51

http://ferriano.mx/product/blusa-aplicaci%C3%B3n-met%C3%A1lica

Those are recommended products appears in each product details

khoa's picture
khoa
Fri, 02/03/2017 - 09:39

Hi,

Please open views-view-fields--product-relate.tpl.php(sites\all\themes\md_orenmode\template\views\products\product_relate), then remove this block of code

<div class="rating">
<span class="star">
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 20) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 40) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 60) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 80) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
<i class="fa <?php ($row->field_field_product_rating[0]['raw']['average'] >= 100) ? print 'fa-star' : print 'fa-star-o'; ?>"></i>
</span>
<?php print $fields['comment_count']->content;?> <?php print t('Review(s)'); ?>
</div>

Thanks!

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.