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

@@ -0,0 +1,33 @@
{#
/**
* @file
*
* Default product template.
*
* Available variables:
* - attributes: HTML attributes for the wrapper.
* - product: The rendered product fields.
* Use 'product' to print them all, or print a subset such as
* 'product.title'. Use the following code to exclude the
* printing of a given field:
* @code
* {{ product|without('title') }}
* @endcode
* - product_entity: The product entity.
* - product_url: The product URL.
*
* @ingroup themeable
*/
#}
{#
<article{{ attributes }}>
{{- product -}}
</article>
#}
<article{{ attributes }}>
{{- product|without('variation_attributes') -}}
<a href="mailto:info@materio.com?subject=Multi-Joueurs" class="btn">
{% trans %}Demander un devis{% endtrans %}
</a>
</article>

View File

@@ -19,9 +19,14 @@
* @ingroup themeable
*/
#}
{#
<article{{ attributes }}>
{{- product|without('variation_attributes') -}}
<a href="/{{ language }}/pricing" @click.prevent="onClickLink" class="btn">
{% trans %}View Option Details{% endtrans %}
</a>
</article>
#}
<article{{ attributes }}>
{{- product -}}
</article>

View File

@@ -21,7 +21,7 @@
#}
<div{{ attributes }}>
{{- product_variation -}}
<a href="/pricing" @click.prevent="onClickLink" class="btn">
<!-- <a href="/pricing" @click.prevent="onClickLink" class="btn">
{% trans %}View Option Details{% endtrans %}
</a>
</a> -->
</div>