PHP Classes

File: resources/js/components/Shop/Product.vue

Recommend this page to a friend!
  Classes of Edward Paul  >  Flexible PHP Coupon System  >  resources/js/components/Shop/Product.vue  >  Download  
File: resources/js/components/Shop/Product.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Flexible PHP Coupon System
E-commerce system that supports discount coupons
Author: By
Last change:
Date: 2 years ago
Size: 957 bytes


Class file image Download
    <figure class="figure">
        <img :src="product.image" :alt="product.title" class="figure-img img-fluid rounded" >
        <figcaption class="figure-caption ">
            <a href="#">{{ product.title }}</a> ${{ product.price }}
            <p>{{ product.description }}</p>
            <button class="btn btn-primary" role="button" @click.prevent="addToCart">Add to cart</button>


    import { mapActions } from 'vuex';

    export default {
        name: "Product",
        props: ['product'],
                addProductToCart: 'addProductToCart'
            addToCart () {
                    product: this.product,
                    quantity: 1

<style scoped>
    .figure-img {
        width: 100%;
For more information send a message to info at phpclasses dot org.