How to display a message according to the country of the store? On Drupal 8, I installed Drupal Commerce 2
I want to modify the TWIG file of the products to show &quot;Made in France&quot;, if the store country is France and made in Belgium, if the store country is Belgium.
How to display a message according to the country of the store ?
I would like to do this in the products TWIG file and in the stores TWIG file.
There is certainly a condition to be met but I do not know which one.
commerce-store--online--full.html.twig :
  {% if  (how to make the condition to check the store country) FR %}
    &lt;div class=&quot;row mr-0 mb-3 ml-0 shadow d-flex flex-wrap flag-france&quot;&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-primary&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 bg-white d-flex align-self-center justify-content-center&quot;&gt;
        &lt;small class=&quot;font-weight-bold text-center&quot;&gt;ENTREPRISE FRANÇAISE&lt;/small&gt;
      &lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-danger&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  {% elseif (how to make the condition to check the store country) BE %}
    &lt;div class=&quot;row mr-0 mb-3 ml-0 shadow d-flex flex-wrap flag-belgique&quot;&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-primary&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 bg-white d-flex align-self-center justify-content-center&quot;&gt;
        &lt;small class=&quot;font-weight-bold text-center&quot;&gt;ENTREPRISE BELGE&lt;/small&gt;
      &lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-danger&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  {% endif %}
For commerce-store--online--full.html.twig it should looks like:
  {% if store_entity.address.country_code == FR %}
    &lt;div class=&quot;row mr-0 mb-3 ml-0 shadow d-flex flex-wrap flag-france&quot;&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-primary&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 bg-white d-flex align-self-center justify-content-center&quot;&gt;
        &lt;small class=&quot;font-weight-bold text-center&quot;&gt;ENTREPRISE FRANÇAISE&lt;/small&gt;
      &lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-danger&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  {% elseif store_entity.address.country_code == BE %}
    &lt;div class=&quot;row mr-0 mb-3 ml-0 shadow d-flex flex-wrap flag-belgique&quot;&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-primary&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 bg-white d-flex align-self-center justify-content-center&quot;&gt;
        &lt;small class=&quot;font-weight-bold text-center&quot;&gt;ENTREPRISE BELGE&lt;/small&gt;
      &lt;/div&gt;
      &lt;div class=&quot;col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-3 bg-danger&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  {% endif %}