smootify:errors
Shopify's errors of a cart operation, or the error a filter threw
Shopify’s errors of a cart operation, or the error a filter threw Since 1.x.
Listen
window.Smootify = window.Smootify || [];
window.Smootify.push((api) => {
api.on("errors", (payload) => {
// …
});
});Payload
UserError[]UserError
/** An error Shopify answers (a sold-out variant, an invalid code) or a filter throws. */
export interface UserError {
message: string;
field?: string[] | null;
code?: string | null;
}