Projekt

Allgemein

Profil

GX-Bug #58909

Von Wilken Haase vor mehr als 5 Jahren aktualisiert

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

 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} 
 ~~~ 

Zurück