Skip to content

Commit

Permalink
Merge pull request #53 from vtex/revert-52-fix/orderformid-querystring
Browse files Browse the repository at this point in the history
Revert "Update query string to get orderformid"
  • Loading branch information
omninando authored Aug 28, 2019
2 parents 004fc37 + 687f237 commit cbf0a7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
14 changes: 0 additions & 14 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtex.js",
"version": "2.10.2",
"version": "2.10.1",
"readmeFilename": "README.md",
"description": "VTEX JS SDK",
"deploy": "deploy/",
Expand Down
6 changes: 3 additions & 3 deletions src/checkout.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class Checkout
quantity: 0
})
@updateItems(itemsToRemove, expectedOrderFormSections)

# Clone an item to one or more new items like it
cloneItem: (itemIndex, newItemsOptions, expectedFormSections = @_allOrderFormSections) =>
@_updateOrderForm
Expand Down Expand Up @@ -384,7 +384,7 @@ class Checkout
items: items
postalCode: postalCode
country: country
else
else
[shippingData,orderFormId] = [arguments[0], arguments[1]]
dataRequest =
shippingData: shippingData
Expand Down Expand Up @@ -487,7 +487,7 @@ class Checkout
return readSubcookie(cookie, COOKIE_ORDER_FORM_ID_KEY)

_getOrderFormIdFromURL: =>
urlParam('orderformid')
urlParam('orderFormId')

_getBaseOrderFormURL: ->
HOST_URL + '/api/checkout/pub/orderForm'
Expand Down

0 comments on commit cbf0a7c

Please sign in to comment.