Skip to content

Instantly share code, notes, and snippets.

@fraserdeans
Last active December 26, 2015 10:19
Show Gist options
  • Save fraserdeans/7136006 to your computer and use it in GitHub Desktop.
Save fraserdeans/7136006 to your computer and use it in GitHub Desktop.
// shutlQuoteReponse received via Shutl API
shutlQuoteResponse = {
"quote_collection": {
"id": "51d6b5dfe4b0d901fbcfce1a"
...
}
}
new Shutl.PriceCalendar({
quoteResponse: shutlQuoteResponse,
container: '#shutl-quote-container',
quoteIdElement: '#result-quote-id',
selectedQuoteId: '51d6b5dfe4b0d901fbcfce1a-1374055484',
quoteSelectionCallback: function(quote) {
// Do something with selected quote.
// All quote attributes are accessible: id, vehicle, merchant_price,
// customer_price, pickup_start, pickup_finish, delivery_start, delivery_finish,
// valid_until, delivery_promise, delivery_promise_text.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment