Versions Compared

Key

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

...

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

changeLocation

Method of widget instance, that allow you to change location externally. It receive only location id.

For better understanding please see example and embedding documentation: Link

Example

Code Block
function changeLocation(locationId) {
		searchWidget.changeLocation(locationId);
   	}
    TCWidget.init({
        apikey: 'SUBSTITUTE_YOUR_API_KEY_HERE',
		container: 'tireconnect',
		locationLock: true,
	}).then(function(widget) {
    	searchWidget = widget;   
	});

Wheel Widget

Search methods

...

  • brandName

  • boreMax

  • color

  • width

  • price

Example

Code Block
languagejs
filters: {
    brandName: ['Motiv'],
    boreMax: ['73.1'],
    color: ['BLACK'],
    width: ['7.5'],
    price: {
        from: 109,
        to: 160
    }
}

...

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

Example

Code Block
languagejson
{
   autoRedirectToSummary: true
}

...

location_id - Dealer's location ID

Example

Code Block
languagejs
widget.searchWheelsByVehicle({
    year: 2022,
    make: "Acura",
    model: "ILX",
    bodyType: "Sedan",
    subModel: "",
    option: "",
    diameter: "18",
    locationId: 22592
});

...