I am trying to override summary.phtml file so I can change the functionality of the review button which is below product title, ex:'3 reviews' & 'add new review'.
File: summary.phtml
File Path:
Magento/module-review/view/frontend/templates/helper/summary.phtml
I already override form.phtml to customize my review form, so here is my xml.
File: default.xml
File Path:
SimpleMagento/ReviewCustomer/view/frontend/layout/default.xml
<referenceContainer name="content">
<referenceBlock name="product.review.form">
<action method="setTemplate">
<argument name="template" xsi:type="string">SimpleMagento_ReviewCustomer::form.phtml</argument>
</action>
</referenceBlock>
<referenceBlock name="product.info.review" >
<arguments>
<argument name="template" xsi:type="string">SimpleMagento_ReviewCustomer::helper/summary.phtml</argument>
</arguments>
</referenceBlock>
</referenceContainer>
override summary.phtml File Path:
SimpleMagento/ReviewCustomer/view/frontend/templates/helper/summary.phtml
after many try its still load core summary.phtml file, not mine. What I am doing wrong? Thanks