We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example adding a variation with custom item data.
var data = { "id": "1820", "quantity": "1", "variation": { "attribute_colours": "Red", "attribute_pa_size": "2x-large" }, "item_data": { "engraved_name": "Sébastien Dumont", "engraved_size": "Medium" } }; CoCart.post("cart/add-item", data) .then((response) => { // Successful request console.log("Response Status:", response.status); console.log("Response Headers:", response.headers); console.log("Response Data:", response.data); }) .catch((error) => { // Invalid request, for 4xx and 5xx statuses console.log("Response Status:", error.response.status); console.log("Response Headers:", error.response.headers); console.log("Response Data:", error.response.data); }) .finally(() => { // Always executed. });
The text was updated successfully, but these errors were encountered:
seb86
No branches or pull requests
For example adding a variation with custom item data.
The text was updated successfully, but these errors were encountered: