Skip to content

Commit

Permalink
Update query string to get orderformid
Browse files Browse the repository at this point in the history
  • Loading branch information
omninando committed Aug 27, 2019
1 parent d2e23e1 commit 866a443
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Query string to get orderformid from `OrderFormId` to `orderformid` due to confusion from previous method
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 866a443

Please sign in to comment.