Skip to content
Merged

Develop #1641

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/components/blocks/Checkout/Shipping.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default {
}
this.shipping.shippingMethod = shipping.method_code
}
this.changeShippingMethod()
},
methods: {
sendDataToCheckout () {
Expand Down
4 changes: 2 additions & 2 deletions core/pages/Checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ export default {
region_code: this.payment.region_code ? this.payment.region_code : '',
vat_id: this.payment.taxId
},
shipping_method_code: this.shippingMethod.method_code ? this.shippingMethod.method_code : this.shipping.method_code,
shipping_carrier_code: this.shippingMethod.carrier_code ? this.shippingMethod.carrier_code : this.shipping.method_code,
shipping_method_code: this.shippingMethod.method_code ? this.shippingMethod.method_code : this.shipping.shippingMethod,
shipping_carrier_code: this.shippingMethod.carrier_code ? this.shippingMethod.carrier_code : this.shipping.shippingMethod,
payment_method_code: this.getPaymentMethod(),
payment_method_additional: this.payment.paymentMethodAdditional,
shippingExtraFields: this.shipping.extraFields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
}
},
beforeMount () {
let inspirationsQuery = builder().query('match', 'category.name', this.category).build()
let inspirationsQuery = builder().query('match', 'category.name', this.category).andQuery('range', 'status', { 'gte': 0, 'lt': 2 }).andQuery('range', 'visibility', { 'gte': 2, 'lte': 4 }/** Magento visibility in search & categories */).build()

this.$store.dispatch('product/list', {
query: inspirationsQuery,
Expand Down
4 changes: 2 additions & 2 deletions src/themes/default/pages/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export default {
asyncData ({ store, route }) { // this is for SSR purposes to prefetch data
return new Promise((resolve, reject) => {
console.log('Entering asyncData for Home ' + new Date())
let newProductsQuery = builder().query('match', 'category.name', 'Tees').andFilter('range', 'visibility', { 'gte': 2, 'lte': 4 }/** Magento visibility in search & categories */).build()
let coolBagsQuery = builder().query('match', 'category.name', 'Women').andFilter('range', 'visibility', { 'gte': 2, 'lte': 4 }/** Magento visibility in search & categories */).build()
let newProductsQuery = builder().query('match', 'category.name', 'Tees').andQuery('range', 'status', { 'gte': 0, 'lt': 2 }).andQuery('range', 'visibility', { 'gte': 2, 'lte': 4 }/** Magento visibility in search & categories */).build()
let coolBagsQuery = builder().query('match', 'category.name', 'Women').andQuery('range', 'status', { 'gte': 0, 'lt': 2 }).andQuery('range', 'visibility', { 'gte': 2, 'lte': 4 }/** Magento visibility in search & categories */).build()
store.dispatch('category/list', { includeFields: config.entities.optimize ? config.entities.category.includeFields : null }).then((categories) => {
store.dispatch('product/list', {
query: newProductsQuery,
Expand Down