Skip to content

Commit bc30b6c

Browse files
authored
Merge pull request #1475 from DivanteLtd/develop
1.2.0 release
2 parents 6467fd5 + 290343f commit bc30b6c

File tree

124 files changed

+2109
-672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+2109
-672
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
sudo: required
2+
addons:
3+
chrome: stable
14
language: node_js
25
node_js:
36
- "8"

config/default.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"index": "vue_storefront_catalog_de"
2727
},
2828
"tax": {
29-
"sourcePriceIncludesTax": false,
29+
"sourcePriceIncludesTax": false,
3030
"defaultCountry": "DE",
3131
"defaultRegion": "",
3232
"calculateServerSide": true
@@ -53,7 +53,7 @@
5353
"index": "vue_storefront_catalog_it"
5454
},
5555
"tax": {
56-
"sourcePriceIncludesTax": false,
56+
"sourcePriceIncludesTax": false,
5757
"defaultCountry": "IT",
5858
"defaultRegion": "",
5959
"calculateServerSide": true
@@ -95,6 +95,7 @@
9595
}
9696
},
9797
"cart": {
98+
"multisiteCommonCart": true,
9899
"server_merge_by_default": true,
99100
"synchronize": true,
100101
"synchronize_totals": true,
@@ -129,7 +130,7 @@
129130
"defaultFilters": ["color", "size", "price", "erin_recommends"],
130131
"sortByAttributes": {
131132
"Latest": "updated_at",
132-
"Price":"price"
133+
"Price":"final_price"
133134
},
134135
"galleryVariantsGroupAttribute": "color"
135136
},
@@ -156,9 +157,9 @@
156157
"attributes": "INDEXEDDB",
157158
"products": "INDEXEDDB",
158159
"elasticCache": "INDEXEDDB",
159-
"claims": "LOCALSTORAGE",
160-
"compare": "INDEXEDDB",
161-
"syncTasks": "INDEXEDDB",
160+
"claims": "LOCALSTORAGE",
161+
"compare": "INDEXEDDB",
162+
"syncTasks": "INDEXEDDB",
162163
"newsletterPreferences": "INDEXEDDB",
163164
"ordersHistory": "INDEXEDDB",
164165
"checkoutFieldValues": "LOCALSTORAGE"
@@ -217,6 +218,7 @@
217218
"api_key": "my_example_api_key"
218219
},
219220
"cms": {
220-
"endpoint": "http://localhost:8080/api/ext/cms-data/cms{{type}}/{{cmsId}}"
221+
"endpoint": "http://localhost:8080/api/ext/cms-data/cms{{type}}/{{cmsId}}",
222+
"endpointIdentifier": "http://localhost:8080/api/ext/cms-data/cms{{type}}Identifier/{{cmsIdentifier}}/storeId/{{storeId}}"
221223
}
222224
}

core/api/cart/addToCart.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Functionality for adding product to the cart.
3+
*
4+
* #### Methods
5+
* - **`addToCart(product)`** adds passed product to the cart. Dispatches `cart/addItem` Vuex action
6+
*
7+
* Part of [Cart API Module](https://github.com/DivanteLtd/vue-storefront/tree/master/doc/api-modules)
8+
*/
19
export const addToCart = {
210
methods: {
311
addToCart (product) {

core/api/cart/closeMicrocart.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

core/api/cart/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { addToCart } from './addToCart'
22
import { removeFromCart } from './removeFromCart'
33
import { productsInCart } from './productsInCart'
4-
import { closeMicrocart } from './closeMicrocart'
5-
import { openMicrocart } from './openMicrocart'
6-
import { isMicrocartOpen } from './isMicrocartOpen'
4+
import { closeMicrocart } from './ui/closeMicrocart'
5+
import { openMicrocart } from './ui/openMicrocart'
6+
import { isMicrocartOpen } from './ui/isMicrocartOpen'
77

88
export {
99
addToCart,

core/api/cart/isMicrocartOpen.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

core/api/cart/openMicrocart.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

core/api/cart/productsInCart.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Functionality for returning products in cart.
3+
*
4+
* #### Computed properties
5+
* - **`productsInCart`** returns products in cart. Returns `cart/cartItems` Vuex state.
6+
*
7+
* Part of [Cart API Module](https://github.com/DivanteLtd/vue-storefront/tree/master/doc/api-modules)
8+
*/
19
export const productsInCart = {
210
computed: {
311
productsInCart () {

core/api/cart/removeFromCart.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Functionality for removing product from the cart.
3+
*
4+
* #### Methods
5+
* - **`removeFromCart(product)`** removes passed product from the cart (basing on `sku` & `parentSku`). Dispatches `cart/removeItem` Vuex action.
6+
*
7+
* Part of [Cart API Module](https://github.com/DivanteLtd/vue-storefront/tree/master/doc/api-modules)
8+
*/
19
export const removeFromCart = {
210
methods: {
311
removeFromCart (product) {

core/api/cart/ui/closeMicrocart.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* [Helper] Optional UI functionality for closing microcart.
3+
*
4+
* #### Methods
5+
* - **`openMicrocart`** sets `microcart` and `overlay` property from ui state to `false`. Dispatches `ui/setMicrocart'` Vuex action
6+
*
7+
* Part of [Cart API Module](https://github.com/DivanteLtd/vue-storefront/tree/master/doc/api-modules)
8+
*/
9+
export const closeMicrocart = {
10+
methods: {
11+
closeMicrocart () {
12+
this.$store.commit('ui/setMicrocart', false)
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)