Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

Step-by-step Instruction to Integrate Trustpilot to Magento 2

Vinh Jacker | 08-28-2024

Step-by-step Instruction to Integrate Trustpilot to Magento 2 Step-by-step Instruction to Integrate Trustpilot to Magento 2

The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

Currently, especially in online business, building trust and credibility with customers is one of the top priorities for businesses. To decide whether to trust and choose your product, customers often need to refer to numerous reviews from previous users.

Trustpilot, founded in Denmark in 2007, is a reputable review platform widely used worldwide, helping businesses easily collect and display customer reviews. Integrating Trustpilot with Magento 2 not only helps you build trust but also brings long-term value to your online store.

Let’s explore the steps to achieve this and elevate your store to a new level.

Why you need to integrate Trustpilot Magento 2

Integrating Trustpilot into Magento 2 not only helps you build trust with customers but also offers several other benefits for your store. Here are the reasons why you should integrate Trustpilot into Magento 2:

1. Building trust and credibility: Trustpilot is a reliable and well-known review platform globally. When integrating Trustpilot with Magento 2, customer reviews will be displayed directly on your website, making potential customers feel more confident when shopping. Positive reviews from previous customers create trust and encourage purchasing decisions.

2. Improving SEO and increasing traffic: Reviews from Trustpilot can improve SEO for your website. User-generated content (like reviews and comments), is a crucial factor that enhances search rankings on Google. This will help increase traffic to your website and bring more potential customers.

3. Enhancing customer experience: Integrating Trustpilot into Magento 2 makes it easy for you to monitor and respond to customer reviews. This not only helps you better understand customer needs and desires but also allows you to improve your products and services. Prompt and positive responses to reviews create a good impression and enhance the customer experience.

4. Increasing conversion rates: Positive reviews from Trustpilot can boost your store’s conversion rates. When customers see good reviews about your items and services, they’re more likely to place an order. This not only increases revenue but also helps you build a loyal customer base.

5. Managing online reputation: Trustpilot provides powerful tools to manage your online reputation. You can monitor new reviews, analyze trends, and develop improvement strategies based on customer feedback. This helps you maintain a positive and professional image in the eyes of customers.

6. Easy and flexible integration: Integrating Trustpilot into Magento 2 is straightforward and does not require complex technical skills. You can customize how reviews are displayed on your website, ensuring it matches your design and brand.

This is a powerful tool that helps you manage and enhance your online reputation, improve customer experience, and increase revenue. Consider integrating Trustpilot into Magento 2 to maximize the benefits it offers your store.

How to integrate Trustpilot Magento 2

Step 1: In the custom plugin, create the file app/code/Techgroup/Addon/view/frontend/layout/catalog_product_view.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="reviews.tab" remove="true"/>
        
        <referenceBlock name="product.info.details">
            <block class="Magento\Catalog\Block\Product\View" name="trustpilot.tab" as="customer_reviews" template="Techgroup_Addon::trustpilot.phtml" group="detailed_info">
                <arguments>
                    <argument name="sort_order" xsi:type="string">30</argument>
                    <argument name="title" translate="true" xsi:type="string">Reviews</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>    
</page>

Step 2: Continue create template file app/code/Techgroup/Addon/view/frontend/templates/trustpilot.phtml

<?php 

/**
 * @var $block Magento\Catalog\Block\Product\View
 */
$_product = $block->getProduct();
?>

<!-- TrustBox widget - Product Reviews SEO -->
<div class="trustpilot-widget" data-locale="en-US" data-template-id="xxxxxxxx" data-businessunit-id="xxxxxxxxxx" data-style-height="400px" data-style-width="100%" data-theme="light" data-sku="<?php echo $_product->getSku()?>" data-name="<?php echo $_product->getName()?>" data-review-languages="en" data-no-reviews="hide" data-fullwidth="true">
    <a href="xxxxxxxxxxxxxxxxx" target="_blank" rel="noopener">Trustpilot</a>
</div>
<!-- End TrustBox widget →
  • At Update category Page

Update Category Page In the theme directory app/design/frontend/namespace/theme/Magento_Review/templates/helper/, override summary_short.phtml

Then, at the top line, add the following code:

<?php
$_product = $block->getProduct();
?>
<?php if($_product):?>
    <!-- TrustBox widget - Product Mini -->
    <div class="trustpilot-widget" data-locale="en-US" data-template-id="xxxxxxxxxxxx" data-businessunit-id="xxxxxxxxx" data-style-height="24px" data-style-width="100%" data-theme="light" data-sku="<?php echo $_product->getSku()?>" data-name="<?php echo $_product->getName()?>" data-no-reviews="hide" data-scroll-to-list="true" data-style-alignment="center">
      <a href="xxxxxxxxxxxxxxxxxxx" target="_blank" rel="noopener">Trustpilot</a>
    </div>
    <!-- End TrustBox widget -->
    <?php return;?>
<?php endif;?>
  • At Product Page

Update Category Page In the theme directory app/design/frontend/namespace/theme/Magento_Review/templates/helper/, override summary.phtml

<?php
$_product = $block->getProduct();
?>
<?php if($_product):?>
    <!-- TrustBox widget - Product Mini -->
    <div class="trustpilot-widget" data-locale="en-US" data-template-id="xxxxxxxxxxxx" data-businessunit-id="xxxxxxxxxxxx" data-style-height="24px" data-style-width="100%" data-theme="light" data-sku="<?php echo $_product->getSku()?>" data-name="<?php echo $_product->getName()?>" data-no-reviews="hide" data-scroll-to-list="true" data-style-alignment="center">
      <a href="xxxxxxxxxxxxxx" target="_blank" rel="noopener">Trustpilot</a>
    </div>
    <!-- End TrustBox widget -->
    <?php return;?>
<?php endif;?>

Conclusion

Integrating Trustpilot with Magento 2 is a strategic move that can significantly enhance your online store’s reputation and customer trust. By following the detailed instruction outlined in this article, you can seamlessly incorporate Trustpilot’s powerful review system into your Magento 2 platform.

This integration not only helps improve your SEO and conversion rates but also provides valuable insights from customer feedback. In an increasingly competitive online marketplace, leveraging Trustpilot’s capabilities can set your store apart, fostering a loyal customer base and driving sustained business growth.

Start integrating Trustpilot today to experience these benefits and elevate your e-commerce success.

Table of content
    Jacker

    With over a decade of experience crafting innovative tech solutions for ecommerce businesses built on Magento, Jacker is the mastermind behind our secure and well-functioned extensions. With his expertise in building user-friendly interfaces and robust back-end systems, Mageplaza was able to deliver exceptional Magento solutions and services for over 122K+ customers around the world.



    Related Post

    Website Support
    & Maintenance Services

    Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

    Get Started
    mageplaza services