# Wie kann ich AggregateRating auf Base = 5 umstellen ?

**URL:** <https://forum.shopware.com/t/wie-kann-ich-aggregaterating-auf-base-5-umstellen/58463>\
**Category:** Programmierung\
**Created:** [9. März 2019 um 11:35 UTC](https://forum.shopware.com/t/wie-kann-ich-aggregaterating-auf-base-5-umstellen/58463 "2019-03-09T11:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domagical](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@Domagical](https://forum.shopware.com/u/Domagical)\
**Post date:** [9. März 2019 um 11:35 UTC](https://forum.shopware.com/t/wie-kann-ich-aggregaterating-auf-base-5-umstellen/58463/1 "2019-03-09T11:35:27Z")

</div>

Hallo,

Wie kann ich AggregateRating auf Base = 5 umstellen und mir im Frontend den Durchschnitt ausgeben lassen?

In der rating.tpl finde ich zwar folgenden Block:

{\* Base \*}  
{block name=‘frontend\_rating\_base’}  
&nbsp; &nbsp; {$isBase=10} {\* available options: 10 (default) or 5 \*}  
&nbsp; &nbsp; {if isset($base)}  
&nbsp; &nbsp; &nbsp; &nbsp; {$isBase=$base}  
&nbsp; &nbsp; {/if}  
{/block}

&nbsp;

Wenn ich hier isBase=5 einstelle wird zwar bestrating auf 5 gestellt.

Der RatingValue bleibt aber auf 10. Das passt ja dann aber nicht zusammen. Wie schafft man es das auch der RatingValue in der Skala bis 5 ausgegeben wird?
