Discover Shopify App Store – A Comprehensive Handbook 2024
Explore the Shopify App Store for tailored solutions to grow your business. Discover your perfect app today!
Vinh Jacker | 11-11-2024
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.
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.
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 →
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;?>
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;?>
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.