# How can i Override file engine/Shopware/Core/sArticles.php in Shopware?

**URL:** <https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426>\
**Category:** International (English Only)\
**Tags:** programming, shopping-worlds\
**Created:** [27. September 2018 um 04:30 UTC](https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426 "2018-09-27T04:30:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansarhusain](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ansarhusain](https://forum.shopware.com/u/ansarhusain)\
**Post date:** [27. September 2018 um 04:30 UTC](https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426/1 "2018-09-27T04:30:05Z")

</div>

I want to override&nbsp; **sSaveComment** &nbsp;function in Shopware engine/Shopware/Core/sArticles.php

since i want to replace at the place of (1 to 10 ) to (1 star , 2stars ,3stars) etc .

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/c/cc0ee2d15e8cffc3c461c4f896fee1cfba249eaf.png)

---

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [27. September 2018 um 06:54 UTC](https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426/2 "2018-09-27T06:54:53Z")

</div>

Check the file **/themes/Frontend/Bare/frontend/detail/comment/form.tpl**

You’ll find the following:

```
{* Review Rating *}
{block name='frontend_detail_comment_input_rating'}
    
        
            {s name="Rate10"}{/s}
            {s name="Rate9"}{/s}
            {s name="Rate8"}{/s}
            {s name="Rate7"}{/s}
            {s name="Rate6"}{/s}
            {s name="Rate5"}{/s}
            {s name="Rate4"}{/s}
            {s name="Rate3"}{/s}
            {s name="Rate2"}{/s}
            {s name="Rate1"}{/s}
        
    
{/block}

```

&nbsp;

If you want to change your rating system from 1 - 10 to 1 - 5 you’ll have to do something like the following:  
Note: Please don’t change the file in the Bare Template, create an own Template / Theme and edit this block in your own Theme. Check documentation.

```
{extends file="parent:frontend/detail/comment/form.tpl"}

{namespace name="frontend/detail/comment"}

{* Review Rating *}
{block name='frontend_detail_comment_input_rating'}
    
        
            {s name="Rate5"}{/s}
            {s name="Rate4"}{/s}
            {s name="Rate3"}{/s}
            {s name="Rate2"}{/s}
            {s name="Rate1"}{/s}
        
    
{/block}

```

If you just want to change the text which is shown in the dropdown, you can just edit the snippets via your shopware backen (Snippets: Rate1 - Rate10) and don’t need to change anything in the template / theme itself.

---

<div class="post-metadata">

**Author:** ![ansarhusain](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ansarhusain](https://forum.shopware.com/u/ansarhusain)\
**Post date:** [27. September 2018 um 07:48 UTC](https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426/3 "2018-09-27T07:48:33Z")

</div>

Super logic .&nbsp;

Thanks so much&nbsp;

---

<div class="post-metadata">

**Author:** ![iLuHa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/iluha/32/8191_2.png) [@iLuHa](https://forum.shopware.com/u/iLuHa)\
**Post date:** [27. September 2018 um 08:03 UTC](https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426/4 "2018-09-27T08:03:25Z")

</div>

You’re welcome 🙂

---

<div class="post-metadata">

**Author:** ![saraesfehani](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@saraesfehani](https://forum.shopware.com/u/saraesfehani)\
**Post date:** [27. September 2018 um 08:05 UTC](https://forum.shopware.com/t/how-can-i-override-file-engine-shopware-core-sarticles-php-in-shopware/55426/5 "2018-09-27T08:05:19Z")

</div>

> Thanks for your helpful explanation
> 
> &nbsp;
