...
Note: Parameters highlighted bold - required.
Adding filters & options
You can add filters to any of search methods.
...
Code Block |
---|
filters: { brand: ['Bridgestone', 'Firestone', 'Fuzion'], load_index: [91, 89], speed_rating: ['H', 'V', 'W', 'S'], price: { from: 100, to: 160 } } |
Adding search options
You Also you can add search options to any of search methods.
...
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 |
---|
{
defaultSelectedQty: 4,
minQtyInResults: 4,
autoRedirectToSummary: true,
} |
Full usage of filters and options example might look like this
Code Block |
---|
<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
aces_id - Vehicle Aces ID
...