Skip to content

Commit

Permalink
STRF-12475: Add updateCartItemOptions form request to stencil-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanarldt committed Dec 16, 2024
1 parent d993ddc commit 69c012b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,16 @@ export default class extends Base {
this.remoteRequest('/cart/update', 'POST', { params: payload }, callback);
}

/**
* Update cart item options
*
* @param {FormData} formData
* @param {Function} callback
*/
updateCartItemOptions(formData, callback) {
this.makeRequest('/cart.php', 'POST', { formData }, false, callback);
}

/**
* Get cart content
*
Expand Down

0 comments on commit 69c012b

Please sign in to comment.