Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • defaultSelectedQty - provide default selected Qty

  • minQtyInResults - provide minimum searched Qty

  • autoRedirectToSummary - flag, which will say widget to go to summary page if results have only 1 item

Example

Code Block
languagejson
{
   defaultSelectedQty: 4,
   minQtyInResults: 4,
   autoRedirectToSummary: true
}

Full usage of filters and options example might look like this

Code Block
languagejs
<script>
	TCWidget.init({
		apikey: '[your apikey]',
		container: 'tireconnect',
	}).then(function(widget) {
		widget.searchByVIN({
			vin: '[VIN_code]',
			location_id: [somelocation],
			filters: {
                brand: ['Bridgestone', 'Firestone', 'Fuzion'],
                load_index: [91, 89],
                speed_rating: ['H', 'V', 'W', 'S'],
                price: {
                    from: 100,
                    to: 160
                },
                run_flat: 1,
                light_truck: 1,
                category: 10,
                season_id: 1,
                offers: 293 
           } 
			},
			{
        		defaultSelectedQty: 4,
        		minQtyInResults: 4,
        		autoRedirectToSummary: true
			}
		})
	});
</script>

Search by Aces

...