Skip to content
Merged
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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- All categories disappearing if you add the child category name to includeFields - @1070rik (#4015)
- Fix overlapping text in PersonalDetails component - @jakubmakielkowski (#4024)
- Redirect from checkout to home with a proper store code - @Fifciu
- Added back error notification when user selects invalid configuration - @1070rik (#4033)

### Changed / Improved
- Optimized `translation.processor` to process only enabled locale CSV files - @pkarw (#3950)
Expand Down
9 changes: 9 additions & 0 deletions core/modules/catalog/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import EventBus from '@vue-storefront/core/compatibility/plugins/event-bus'
import { PRODUCT_SET_CURRENT_CONFIGURATION, PRODUCT_SET_CURRENT } from './store/product/mutation-types'
import omit from 'lodash-es/omit'
import config from 'config'
import i18n from '@vue-storefront/core/i18n';

// Listeners moved from Product.js

Expand Down Expand Up @@ -46,6 +47,14 @@ export const filterChangedProduct = async (filterOption, store, router) => {
}
), { root: true })
}

store.dispatch('notification/spawnNotification', {
type: 'warning',
message: i18n.t(
'No such configuration for the product. Please do choose another combination of attributes.'
),
action1: {label: i18n.t('OK')}
})
}
}

Expand Down