Skip to content

Commit

Permalink
[skip ci] Point comment to add item to card documentation (#15)
Browse files Browse the repository at this point in the history
This patch just points the comment to `/api/v2/storefront/cart/add_item`.

It also uses a permalink so that the comment stays consistent in case
the documentation changes.
  • Loading branch information
albertoalmagro committed Dec 1, 2022
1 parent cf105ec commit 7ddff55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ Spree.ready(function($) {
quantity,
options, // options hash - you can pass additional parameters here, your backend
// needs to be aware of those, see API docs:
// https://github.com/spree/spree/blob/master/api/docs/v2/storefront/index.yaml#L42
// https://github.com/spree/spree/blob/d894358e49b8c3a7f6944e838de7cd92510e31d0/api/docs/v2/storefront/index.yaml#L442
function(response) {
$addToCart.prop('disabled', false)
Spree.fetchCart()
Expand Down

0 comments on commit 7ddff55

Please sign in to comment.