Versions Compared

Key

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

...

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

...

Code Block
widget.searchByLicense({
	state: 'NH', 
	license: '12345',
	location_id: 15290
});

Search by VIN

...

Code Block
widget.addCustomerInfo({
    name: 'John Doe',
    phone: '4564564562',
    email: 'john@doe.com',
    zipPostalCode: 'L4S0B8',
    city: 'Richmond Hill',
    stateProvince: 'ON',
    addressLine1: '30 Via Renzo Drive',
    addressLine2: 'Suite 254',
    preferredTime: '2020-11-30 17:15', //15 min step    
    wayToContact: 'phone',
    vehicle: {
        year: '2020',
        make: 'Honda',
        model: 'CR-V',
        trim: 'LX',
        carTireId: 162713,
    }
});

addSupplierOrderInfo

...

Code Block
widget.addSupplierOrderInfo({
		poNumber: {
        value: '111222333',
        editable: false,
        singleUse: false,
    }
});