How to Install Reviews for Shopify

Overview

Sendlane Reviews lets you request and respond to product reviews with Automations, use product review data to create perfectly targeted audiences, and includes widget customization options to seamlessly blend with your website's branding! Read on to learn how to install Sendlane Reviews in your Shopify store.

In This Guide


🚦 Before Getting Started

  1. Have admin access to your Shopify store
  2. Create a List named Reviews
  3. On your Shopify integration page, click the Settings icon and select your new Reviews List under the Reviews dropdown
  4. Follow the steps outlined in How to Import to Sendlane Reviews. Importing your existing reviews before you begin the installation process will allow you to view your reviews on your website right away.
  5. Determine whether your Shopify theme supports Custom Liquid blocks. Go to your store’s Themes Page, Click Customize, click Add Section, and scroll through the section options to see if Custom Liquid is available; usually, it is near the bottom. If your theme does not natively support custom.liquid blocks, follow the instructions in How to How to Create a Custom Liquid Block For Your Shopify Theme.

🚨 Sendlane Reviews does not include loyalty functionality

If your existing reviews platform includes loyalty points or other rewards functionality, you will need to maintain access to it.

Locate Reviews Script and Widget Snippets

Snippets for the reviews widget script (connects your Shopify store to Sendlane), widget element (displays your reviews on product pages), and star rating widget element (displays products’ and product groups’ average star rating) are found on the Product Review page.

To access all reviews snippets:

  1. Login to Sendlane 
  2. Click the Reviews icon 
  3. Click Product Review 
  4. Click Get Widget Code 
  5. Click Copy Code under the snippet you need* 

*To access the star rating widget, click the Show Star Rating Widget checkbox, then click Copy Code under Widget Element.

1

 Install the Widget Script

The reviews widget script connects your Shopify store to your Sendlane account. To install the widget script:

  1. Login to Shopify
  2. Click Sales Channels
  3. Click Online Store
  4. Click Themes
  5. Click the three dot menu
  6. Click Edit code
  7. Search for the theme.liquid file
  8. Click into the file
  9. Press CTRL + F
  10. Enter </head>
  11. Paste the product review widget script on the line before the </head> tag
  12. Click Save
2

 Install the Widget Element

The reviews widget element tells your Shopify store where to display reviews for individual products on your product pages. You can install the widget element in the default product page template file, and Sendlane Reviews will automatically only display reviews for the product that appears on the page.

To install the main review widget:

  1. Login to Shopify
  2. Click Sales Channels
  3. Click Online Store
  4. Click Themes
  5. Click Customize
  6. From the dropdown at the top center of the screen, select Products
  7. Click Default product, or the custom template you use as your default product page
  8. Click Add section wherever you'd like the Reviews widget to appear (generally, this is installed at the bottom of the product page; use the preview button to see your widget's placement and make adjustments as needed)
  9. Select Custom Liquid (if you don’t see Custom Liquid as an option, follow these instructions)
  10. Paste the Reviews widget code in the Custom Liquid field
  11. Click Save

To check that the review script and widget were installed correctly, click Preview Store, then click on a product and scroll down.

If you’ve imported reviews, you should see any existing reviews for the product you clicked on.

If you have not imported reviews, you should see a section to write the first review for the product you clicked on.

3

 Install the Star Rating Widget Element

The star rating widget element displays a product’s average star rating on individual product pages and on product collection pages.

Product Pages

  1. Login to Shopify
  2. Click Sales Channels
  3. Click Online Store
  4. Click Themes
  5. Click Customize
  6. From the dropdown at the top center of the screen, select Product
  7. Click Default product, or the custom template you use as your default product page
  8. Click Add section wherever you'd like the star widget to appear (this widget is often installed directly under the product's price or title)
  9. Select Custom Liquid (if you don’t see Custom Liquid as an option, follow these instructions)
  10. Paste the star widget code in the Custom Liquid field
  11. Click Save
  12. If you use multiple product page templates, repeat the steps above for each product page template

Product Collection Pages

  1. Login to Shopify
  2. Click Sales Channels
  3. Click Online Store
  4. Click Themes
  5. Click Customize
  6. From the dropdown at the top center of the screen, select Collections
  7. Click Default collection, or the custom template you use as your default collections page
  8. Click Add section wherever you'd like the star widget to appear (this widget is often installed directly under the product's price or title)
  9. Select Custom Liquid (if you don’t see Custom Liquid as an option, follow these instructions)
  10. Paste the star widget code in the Custom Liquid field
  11. Click Save
  12. If you use multiple product collection page templates, repeat the steps above for each product collection page template

🌟  Want to change the size of the star rating widget? We got you!

To change the size of your star widget:

  1. Open the Custom Liquid block you added to individual products page template or the card-product.liquid file for product category pages
  2. Copy the following snippet:
    • <style>
        .slr-widget--mini .slr-stars svg {
          width: 20px;
          height: 20px;
        }
        .slr-widget--mini .slr-stars-score__total {
          font-size: 8px;
        }
      </style>
      			
  3. Paste the snippet directly above the star rating widget code you want to modify
  4. Adjust the values for width/height (should always be the same value) and font-size.
  5. Click Save
  6. Review your changes by clicking Preview

⏭️ Next Steps

Troubleshooting

I can't add my second store to my Reviews

At this time, Sendlane Reviews does not support multiple stores in a single Sendlane account. If you would benefit from this functionality, please reach out to our 24/7 support or your Customer Success Manager.

Did this answer your question? Thanks for your feedback! There was a problem submitting your feedback. Please try again!