Skip to content
OpenCart · User manual

Reviews Pro

Version 1.0.7 Product page
Chapter 10

Widget

The look of the reviews widget, where it is inserted in your store, the one-line HTML layer, typography inheritance and the compact badge.

What the widget shows

On a product page the widget shows, from top to bottom:

  • a summary with the average, the number of reviews and one bar per rating. Pressing a bar shows only the reviews with that rating;
  • a row with the photos customers have sent;
  • an order selector: With photos first (the default), Most recent, Highest rated, Lowest rated;
  • the Write a review button, when reviews written from the store are allowed;
  • the list of reviews, with the author, the rating, the date, the Verified purchase mark, the text, the photos and your reply. Pressing a photo opens it in a viewer;
  • paging, by the number set in Reviews per page in the store.

Filtering, ordering and paging happen in place, without reloading the page. The widget is written in the language of the page being viewed.

The preview

The Widget tab has a Preview box that draws the real widget and the badge with sample reviews. It follows every change at once, before you save. Press Save to apply the changes; they reach your store within a few minutes.

Look

SettingWhat it does
Stars and barsColour of the stars and of the rating bars.
Buttons and highlightsColour of buttons, links and the chosen filter.
TextColour of the text. With Use my store's text colour ticked (the default) the widget takes the text colour of your theme.
BackgroundBackground colour of the widget. With No background ticked (the default) your page shows through.
Review cardsBackground of each review in the Cards layout.
FontMy store's font (default), Modern (system), Classic (serif) or Rounded.
Text sizeBase size of the text, from 12 to 20 px. The default is 15.
Rounded cornersCorner radius, from 0 to 24 px. The default is 10.
Widest it grows (px)On a wide page the widget stays centred at this width. The default is 1180. 0 lets it fill its place.
LayoutList (default), Cards or Grid.

Typography inheritance

With the defaults, the widget blends into your theme: My store's font makes it use the same font as the rest of the page, Use my store's text colour the same text colour, and No background leaves your page's background visible. Choose another font or untick the boxes only when you want the widget to stand apart.

The widget is built so that a theme's general styles do not break it, and it brings its own margins when it is placed next to an element or in a layer.

Show

OptionWhat it shows
Average and barsThe summary block at the top.
Row of customer photosThe row of photos above the list.
Verified purchase markThe mark on reviews from buyers.
DatesThe date of each review.
InitialsThe circle with the author's initial, or their picture.

All five are on by default.

Where it appears

OptionWhat happens
In my theme's reviews tab (automatic)Default. The widget takes the place of OpenCart's list of reviews, in the reviews tab of the product page. Nothing has to be edited.
Next to an element of the product pageThe widget is inserted next to the element you name in CSS selector.
Only where I paste the layerThe widget appears only where you paste the HTML layer.

With the second and third options, the theme's own list of reviews is left empty, so reviews are not shown twice.

CSS selector

Shown with Next to an element of the product page. Type the selector of an element of your product page, for example #tab-description or .product-info, and choose in Where it appears how the widget is placed in relation to it:

OptionPosition
Before itJust before the element.
After itJust after the element (default).
Inside, at the startInside the element, as its first content.
Inside, at the endInside the element, as its last content.
In its placeThe element is replaced by the widget.

If the selector is left empty, the placement goes back to automatic. If no element of the page matches the selector, the widget is not shown: check the selector with your browser's inspector or ask your theme's developer for it.

Layer to paste

One line of HTML that you can paste anywhere in your store, for example in a theme template or in an HTML content module.

<div data-reviews-pro></div>

On a product page it shows the reviews of the product being viewed. To show the reviews of a given product on any page, add its product id:

<div data-reviews-pro data-product-id="123"></div>

A pasted layer works with every placement option. On a page that contains a layer, the widget is shown in the layer and not next to the CSS selector.

Compact badge

The badge is a small line with the stars, the average and the number of reviews. Pressing it opens all the reviews of the product in a window. It is meant for the top of the product page, near the title or the price.

SettingWhat it does
Show it next to this element (leave empty to use only the layer)CSS selector of the element the badge goes next to, for example #content h1.
Where it appearsBefore it, After it (default), Inside, at the start, Inside, at the end or In its place.
On a product without reviews, show it as «Write the first review»On by default. Without it, a product with no reviews shows no badge. It needs reviews written from the store to be allowed in Settings.
Badge layer to pasteThe HTML line to paste where you want the badge.
<div data-reviews-pro-badge></div>

The badge layer also accepts data-product-id="123" to show the badge of a given product on any page. On a page that contains a badge layer, the badge is shown there and not next to the selector.

Still need help?

Open a support ticket from your account and our team will look at your store with you.