diff --git a/frontend/components/Product.vue b/frontend/components/Product.vue new file mode 100644 index 0000000..02c3193 --- /dev/null +++ b/frontend/components/Product.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/frontend/components/ui/ProductCard.vue b/frontend/components/ui/ProductCard.vue index 7f2566e..cb062a0 100644 --- a/frontend/components/ui/ProductCard.vue +++ b/frontend/components/ui/ProductCard.vue @@ -22,6 +22,7 @@
+
@@ -61,13 +62,16 @@ export default { methods: { addItemToCart() { store.dispatch('cartModule/addItemToCart', { ...this.product }); + }, + viewProduct() { + this.$router.push('/shop/' + this.product.urlSlug) } } }