diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 30aff63..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,14 +0,0 @@ -# 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] - -## [2.10.2] - 2019-08-27 - -### Changed - -- Query string to get orderformid from `OrderFormId` to `orderformid` due to confusion from previous method diff --git a/package.json b/package.json index 892010d..75b86a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vtex.js", - "version": "2.10.2", + "version": "2.10.1", "readmeFilename": "README.md", "description": "VTEX JS SDK", "deploy": "deploy/", diff --git a/src/checkout.coffee b/src/checkout.coffee index 7434afa..2c4a17e 100644 --- a/src/checkout.coffee +++ b/src/checkout.coffee @@ -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 @@ -384,7 +384,7 @@ class Checkout items: items postalCode: postalCode country: country - else + else [shippingData,orderFormId] = [arguments[0], arguments[1]] dataRequest = shippingData: shippingData @@ -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'