|
@@ -4,6 +4,7 @@
|
|
searcher(:items='products' :keys="['name', 'displayName']" @onSearch='filterProducts')
|
|
searcher(:items='products' :keys="['name', 'displayName']" @onSearch='filterProducts')
|
|
card-grid(:items='visibleProducts' :loading='loadingProducts' @onAdd='showProductForm' @onSelect='selectProduct')
|
|
card-grid(:items='visibleProducts' :loading='loadingProducts' @onAdd='showProductForm' @onSelect='selectProduct')
|
|
product-modal(:show='showingProductForm' @onAccept='submitProduct' @onCancel='hideProductForm')
|
|
product-modal(:show='showingProductForm' @onAccept='submitProduct' @onCancel='hideProductForm')
|
|
|
|
+ variant-modal
|
|
cart(:items='cartItems' @onTotalComputed='changeCartTotal' @onIncrementQty='addToCart' @onDecrementQty='decreaseFromCart' @onDeleteItem='removeFromCart' :options='selectedCurrency')
|
|
cart(:items='cartItems' @onTotalComputed='changeCartTotal' @onIncrementQty='addToCart' @onDecrementQty='decreaseFromCart' @onDeleteItem='removeFromCart' :options='selectedCurrency')
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -11,6 +12,7 @@
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
import { Searcher, CardGrid, Cart } from '@@/common'
|
|
import { Searcher, CardGrid, Cart } from '@@/common'
|
|
import ProductModal from '@@/modals/ProductModal'
|
|
import ProductModal from '@@/modals/ProductModal'
|
|
|
|
+ import VariantModal from '@@/modals/VariantModal'
|
|
|
|
|
|
import { FILTER_PRODUCTS, SELECT_PRODUCT, SHOW_PRODUCT_FORM, HIDE_PRODUCT_FORM, SUBMIT_PRODUCT, CHANGE_CART_TOTAL, ADD_TO_CART, DECREASE_FROM_CART, REMOVE_FROM_CART } from '@/constants/actionTypes'
|
|
import { FILTER_PRODUCTS, SELECT_PRODUCT, SHOW_PRODUCT_FORM, HIDE_PRODUCT_FORM, SUBMIT_PRODUCT, CHANGE_CART_TOTAL, ADD_TO_CART, DECREASE_FROM_CART, REMOVE_FROM_CART } from '@/constants/actionTypes'
|
|
|
|
|
|
@@ -19,7 +21,8 @@
|
|
Searcher,
|
|
Searcher,
|
|
CardGrid,
|
|
CardGrid,
|
|
Cart,
|
|
Cart,
|
|
- ProductModal
|
|
|
|
|
|
+ ProductModal,
|
|
|
|
+ VariantModal
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters([
|
|
...mapGetters([
|