How do I add Loox star ratings to Google search results?

Loox's Rich Snippets code (which is responsible for integrating your reviews data to Google) should be automatically integrated into your product page's code when Loox is installed.

We recommend that you verify your Rich Snippets integration using  Google's structured data testing tool on a product with a least one approved review. You should see a section named "aggregateRating" under the Product object. 

If for some reason Loox's Rich Snippets code is not integrated correctly into your product pages, you can manually add it by following these instructions:

  1. Go to your Shopify Themes menu
  2. Click the "Actions" menu and then select "Edit code"
  3. Open the template or section you use for product pages (usually it's called product.liquid or product-template.liquid, but some themes work differently)
  4. Click CTRL + F
  5. Search the following:
    http://schema.org/Product
  6. Find an element with this attribute, for example:
    <div itemscope itemtype=" http://schema.org/Product">
  7. Paste the following code beneath said code line:

    {% if product.metafields.loox.num_reviews %}
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <meta itemprop="ratingValue" content="{{ product.metafields.loox.avg_rating }}"/>
    <meta itemprop="ratingCount" content="{{ product.metafields.loox.num_reviews }}"/>
    </div>
    {% endif %}

It should look like this:

If you're having trouble editing your Liquid code, please contact us and we'll be happy to assist!