add to cart links for products in home

This commit is contained in:
2021-06-09 13:06:52 +02:00
parent d9d2180f94
commit 352223500f
25 changed files with 561 additions and 249 deletions

View File

@@ -80,7 +80,7 @@
></div>
</div>
<aside class="linked-materials">
<h3 class="field__label">{{$t("materio.Linked Materials")}}</h3>
<h3 class="field__label">{{ $t('materio.Linked Materials') }}</h3>
<div class="cards-list">
<ul class="">
<li v-for="node in article.linked_materials" v-bind:key="node.id">

View File

@@ -1,9 +1,11 @@
<script>
import Vue from 'vue'
import productsMixins from 'vuejs/components/productsMixins'
export default {
props: ['html', 'full'], // get the html from parent with props
mixins: [productsMixins],
data() {
return {
template: null, // compiled template from html used in render
@@ -151,7 +153,7 @@ export default {
},
watch: {
html: function(val) {
console.log('html prop changed', val)
// console.log('html prop changed', val)
this.compileTemplate()
}
}