🇮🇳India @Hetal chavda

Account created on 13 December 2021, over 2 years ago
#

Recent comments

🇮🇳India Hetal chavda

Thanks for the great support!

🇮🇳India Hetal chavda

For POST resource :

you need to add uri_paths like this :

uri_paths = {
"create" = "/student-api"
}

🇮🇳India Hetal chavda
<header>

{% block content %}

  {% for item in node.pfield1 %}
    <img src="{{ file_url(item.entity.field_image.entity.fileuri) }}" />
  {% endfor %}

{% endblock %}

</header>

<body>

 {% block content %}
   {% for item in node.pfield2 %}
      <img src="{{ file_url(item.entity.field_image.entity.fileuri) }}" />
      
      {# for paragragh text field {{ item.entity.field_title.value }} #}
   {% endfor %}
 {% endblock %}

</body>
🇮🇳India Hetal chavda

Replace getVocabularyId() with bundle()

example : $suggestions[] = 'page__taxonomy__' . $term->bundle();

🇮🇳India Hetal chavda

One thing to note is that most $build['content'] area keys correspond to their values in the commerce-cart-block.html.twig file. For example, $build['content']['#count_text'] corresponds to {{ count_text }}. Also, if you just want a number of items (without text) you can simply use {{ count }} in that twig file. The contents of the view are displayed within {{ content }} .

Override template : commerce-cart-block.html.twig

If you want to print only count of the product without text then add {{ count }} and add image of cart in this twig template.

Production build 0.71.5 2024