0

Can anyone help me to show yotpo review into tabs at product details page?

I have try with this script in catalog_product_view.xml file, It's showing magento's review but i want to show yotpo review.

<block class="Magento\Catalog\Block\Product\View" name="review" template="Magento_Catalog::product/view/review.phtml" group="detailed_info">
                    <arguments>
                        <argument translate="true" name="title" xsi:type="string">Reviews</argument>
                        <argument name="sort_order" xsi:type="string">30</argument>
                    </arguments>
                </block>
2
  • Delete current review tab, create new tab and call yotpo's phtml inside new tab or move content into newly created tab using xml Commented Mar 20, 2020 at 6:39
  • not able to found yotpo's phtml block and phtml file Commented Mar 20, 2020 at 6:43

1 Answer 1

1

As far as I remember, yotpo fetches review content from remote server and displays it on the product page. How about adding

<?= $this->helper('Yotpo\Yotpo\Helper\Data')->showWidget($block) ?>

to the theme according to https://support.yotpo.com/en/article/setting-up-yotpo-on-magento-v22-and-above

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.