Projekt

Allgemein

Profil

Aktionen

GX-Bug #58914

geschlossen

Leerer Bewertungscontainer in Kacheln wird auch dann angezeigt wenn Bewertungen deaktiviert sind

Von Torben Wark vor mehr als 5 Jahren hinzugefügt. Vor mehr als 5 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Moritz Bunjes
Kategorie:
Honeygrid
Zielversion:
% erledigt:

100%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
3.10.0.1
Release Notes Langtext:

Leerer Bewertungscontainer in Kacheln wird nicht mehr angezeigt wenn Bewertungen deaktiviert sind


Beschreibung

Der Div Container sollte verschwinden wenn Bewertungen aus sind, die Hierarchie der Verschachtlung stimmt aber nicht, die if condition ist eine Ebene zu tief.

/templates/Honeygrid/snippets/product_listing/product_grid_only.html

statt

            {block name="snippets_product_listing_product_grid_only_description_rating"}
                <div class="rating-container hidden-list">
                    {if $showRating}
                        <span{if $p_meta} title="{$p_meta}"{/if}>
                            {if $OVERALL_RATING.rounded && $OVERALL_RATING.rounded != ""}
                                {include file="get_usermod:{$tpl_path}snippets/rating_stars.html" rating_rounded=$OVERALL_RATING.rounded rating_count=$OVERALL_RATING.count }
                            {/if}
                        </span>
                    {/if}
                </div>
            {/block}

muss es sein:

            {block name="snippets_product_listing_product_grid_only_description_rating"}
                {if $showRating}
                    <div class="rating-container hidden-list">
                        <span{if $p_meta} title="{$p_meta}"{/if}>
                            {if $OVERALL_RATING.rounded && $OVERALL_RATING.rounded != ""}
                                {include file="get_usermod:{$tpl_path}snippets/rating_stars.html" rating_rounded=$OVERALL_RATING.rounded rating_count=$OVERALL_RATING.count }
                            {/if}
                        </span>
                    </div>
                {/if}
            {/block}


Zugehörige Tickets

Kopiert von GX-Entwicklung - GX-Bug #58909: Leerer Bewertungscontainer in Kacheln wird auch dann angezeigt wenn Bewertungen deaktiviert sindErledigt

Aktionen
Aktionen

Auch abrufbar als: Atom PDF