diff --git a/src/api/cart.js b/src/api/cart.js index 9c2d631..d0b18a9 100644 --- a/src/api/cart.js +++ b/src/api/cart.js @@ -259,6 +259,16 @@ export default class extends Base { this.remoteRequest('/cart/update', 'POST', { params: payload }, callback); } + /** + * POST form data to /cart.php + * + * @param {FormData} formData + * @param {Function} callback + */ + postFormData(formData, callback) { + this.makeRequest('/cart.php', 'POST', { formData }, false, callback); + } + /** * Get cart content *