How to add a VRN Lookup that supports multiple fitting centre websites.

In this article, we'll go over how you can add a registration lookup to your website that allows users to choose a fitting centre from a drop-down list. This option differs from our regular VRN lookup, as it allows you to represent each of your fitting centres in a single, compact form.

This option is ideal for businesses who manage multiple Tyres and Service websites.

 

To add this feature to your existing website, all you need to do is ask your web developer to add the following code snippet to your website where you want the lookup to appear.

 

<script>
var tyreSites = [
    { "website" : "www.mytowntyres.co.uk", "name" : "My Town Tyres" },
    { "website" : "www.iota.tyresandservice.co.uk", "name" : "Halifax Tyres" }
];
</script>
<script src="https://assets.tyresandservice.co.uk/scripts/tyreclick/vrn-dropdown.js"></script>

For every fitting centre that you would like to add to the drop-down, you need to include the line of code that begins and ends with a curly brace "{ }". For example, the following line represents a single fitting centre:

{ "website" : "www.mytowntyres.co.uk", "name" : "My Town Tyres" }

For each fitting centre, you need to supply 2 pieces of information:

  • The URL address of the website (shown in red above). This is the URL of the fitting centre you are currently adding. Please note you do not need to include the 'http://' that is sometimes added if the URL is copied and pasted from a browser address bar.
  • A name for the fitting centre (shown in blue above). This is the name that appears when a user opens the drop-down box to select a fitting centre.

Once you've added the code above, you should now be able to submit your registration number to a particular fitting centre, based on the option you've chosen from the drop-down.

Back to Knowledge Base

Latest Article

Add a multi-option search to your existing website to allow visitors to find tyres by VRN or tyre size.

View Article