You are viewing the v1 Nacelle Docs for existing merchants.New merchants can find the V2 docs here:

# Loox Setup

The @nacelle/nacelle-loox-nuxt-module (opens new window) adds Vue.js components for integrating Loox (opens new window) product reviews in your Nacelle (opens new window) Nuxt project.

# Requirements

# Setup

# Add Module to Nacelle

Once you have Nacelle set up, you can install this module in your project from npm:

npm install @nacelle/nacelle-loox-nuxt-module --save

After the package has installed, open nuxt.config.js. Under modules add @nacelle/nacelle-loox-nuxt-module to the array:

modules: [
  // ...other modules,

Then add your store's Shopify domain to your environment variables .env file:

# example: "starship-furniture" for ""

Lastly, add the environment variable to the nacelle block of nuxt.config.js:

// nuxt.config.js
nacelle: {
  // ...other Nacelle config,
  shopifyDomain: process.env.SHOPIFY_DOMAIN

# Add the components to your Nacelle Storefront

There are three components you can add to your Nacelle site: <loox-product-rating />, <loox-product-reviews />, and <loox-all-reviews />.

Loox Product Rating will display a star rating for a product along with the number of reviews. Add this component to either components/ProductDetails.vue or components/ProductCard.vue. It accepts the product object as a prop:

<loox-product-rating :product="product" />

Loox Product Reviews will display a grid of product reviews for a particular product. Add this component to pages/products/_handle.vue or anywhere you use products and pass the product object as a prop:

<loox-product-reviews :product="product" />

Loox All Reviews will display a grid of all product reviews across multiple products. It accepts no props.

<loox-all-reviews />