Quote Submitted
This Javscript function is called when a quote request has been successfully submitted.
Place the script before the closing Body tag (</body>) in the theme.liquid file.
function quoteSubmittedCallback(cart) {
console.log("quote submitted");
console.log(cart);
}
The object that is passed to the function is the Shopify cart object which also includes a list of the custom form fields and the values entered by the customer.
The quote number of the new quote will be added to the cart object as "quote_number".
{
quote_number: 1234,
Cart Properties.....,
CustomFields: [
{
Field: 6881,
Value, 'Priority'
},
{
Field: 7848,
Value, 'Company XYZ'
}
]
}