Post by Thommen » Wed Jun 20, 2018 6:47 pm

In site → http://www.marinasopot.com/index.php?ro ... uct_id=305 I want delete rating. In file /catalog/view/theme/mp-spare-part/template/product/product.twig I comment lines:

Code: Select all

{#
            {% if review_status %}
            <div class="rating">
              <p>{% for i in 1..5 %}
                {% if rating < i %}<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>{% else %}<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>{% endif %}
                {% endfor %} <a href="" class="mrgin-l" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">{{ reviews }}</a> / <a href="" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">{{ text_write }}</a></p>
              <hr>
              <!-- AddThis Button BEGIN -->
              <div class="addthis_toolbox addthis_default_style" data-url="{{ share }}"><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_pinterest_pinit"></a> <a class="addthis_counter addthis_pill_style"></a></div>
              <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-515eeaf54693130e"></script>
              <!-- AddThis Button END -->
            </div>
            {% endif %}#}
What should I change, because I still see rating. I want delete block

Code: Select all

<div class="rating">...</div>

Newbie

Posts

Joined
Wed Jun 20, 2018 6:37 pm

Post by paulfeakins » Thu Jun 21, 2018 6:34 pm

Just turn off reviews in the admin then?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ravikumar22 » Thu Jun 21, 2018 8:31 pm

This comment also works on. You can try
<!-- YOUR CODE -->
For Quick Professional Support Contact: ravikumar1986ravi@gmail.com
Image

Image
:) :D :( :o OpenCart Support | Please email at: devinlabsolutions@gmail.com :drunk: :laugh: :)


User avatar
New member

Posts

Joined
Sun Apr 12, 2015 6:33 am

Post by Thommen » Fri Jun 22, 2018 7:14 pm

paulfeakins wrote:
Thu Jun 21, 2018 6:34 pm
Just turn off reviews in the admin then?
That's right. Thank you for the hint.

Newbie

Posts

Joined
Wed Jun 20, 2018 6:37 pm
Who is online

Users browsing this forum: jagall, SohBH and 260 guests