Error - About Cart AJAX response and function extension

Current Behavior vs Expected Behavior

My Function Code:

typescript

errors.push({ localizedMessage: “You must select at least 2 products Selling Plans Ski Wax”, target: ‘cart’, });

Current Cart AJAX Response:

json

{ “description”: null, “message”: “You must select at least 2 products Selling Plans Ski Wax”, “status”: 422 }

Expected Cart AJAX Response (per documentation):

json

{ “description”: “You must select at least 2 products Selling Plans Ski Wax”, “message”: “Cart Error”, “status”: 422 }

1 Like

same issue of follwoing topics.