fix home pricing links
This commit is contained in:
parent
2d07379946
commit
26c81c7c8e
File diff suppressed because one or more lines are too long
|
@ -186,6 +186,8 @@ function materiotheme_preprocess_commerce_product(array &$variables) {
|
|||
unset($variables['product']['variation_field_multiple']);
|
||||
unset($variables['product']['variation_commerce_variation_cart_form']);
|
||||
}
|
||||
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
||||
$variables['language'] = $language;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#}
|
||||
<article{{ attributes }}>
|
||||
{{- product|without('variation_attributes') -}}
|
||||
<a href="/pricing" @click.prevent="onClickLink" class="btn">
|
||||
<a href="/{{ language }}/pricing" @click.prevent="onClickLink" class="btn">
|
||||
{% trans %}View Option Details{% endtrans %}
|
||||
</a>
|
||||
</article>
|
||||
|
|
Loading…
Reference in New Issue