There are currently two ways to install the Vendr Reviews package for Vendr into your solution. Using the Umbraco package distribution, installed via the Umbraco back-office, or using our NuGet packages, installed directly into your projects code base via the NuGet Package Manager.
Umbraco Package Installation
To install the Vendr Reviews Umbraco package, you will need to download the package file manually from the Vendr package page on the Umbraco Developer Portal. On this page, scroll down to the Package Files section and locate the Vendr Reviews package, clicking it to initiate a download.
Once downloaded you should manually install the package by uploading it to the local package installer located in your back-office Packages > Install Local section. Once uploaded, follow the on-screen instructions provided to complete the install.
NuGet Package Installation
To install the Vendr Reviews package via NuGet you can run the following command directly in the NuGet Manager Console window:
PM> Install-Package Vendr.Contrib.Reviews
Alternatively, you can also find and install the NuGet package via the NuGet Package Manager GUI.
Installing the Reviews Snippet
To add the reviews snippet to your front end, in your product pages template you should add a using statement at the top as follows:
And then where you wish to render the reviews, add the following code snippet:
Vendr Reviews will then handle rendering the reviews list and the new review form for you.
Before upgrading, it is always advisable to take a complete backup of your site/database. Every effort has been made to ensure that Vendr Reviews will upgrade gracefully, but there is always a risk that something may not install as expected.
Vendr Reviews uses database migrations for both installs and upgrades. Upgrading is generally a case of installing the latest version over the top of the existing package and running through the installation steps again.