How to add a multi-location VRN/size lookup combination search to your existing website

In this article, we'll go over how you can add a multi-option search by location that allows a user to find tyres on your Tyres and Service website using either their vehicle registration number or tyre size.

The lookup:


<script>
var tsControl = {
    sites: [
        { "website" : "www.mytowntyres.co.uk", "name" : "My Town Tyres" },
        { "website" : "www.iota.tyresandservice.co.uk", "name" : "Halifax Tyres" }
    ],
    colour: "#000"
};
</script>
<script src="https://assets.tyresandservice.co.uk/scripts/tyreclick/tsmulti.js"></script>

The snippet for this lookup is slightly different to the one above, as you need to provide details for each of the fitting centres your are representing.

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.

You can also change the colour of the circular numbers by changing the colour shown in green above. This value can be either a colour word (red, blue, green etc) or HEX value (your developer should be familiar with this).

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

Should you or your developer require assistance with this, please contact the support team on 01625 433 388 or email support@silkmoth.com

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