Hetal chavda → created an issue.
Hetal chavda → created an issue.
For POST resource :
you need to add uri_paths like this :
uri_paths = {
"create" = "/student-api"
}
<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>
Replace getVocabularyId() with bundle()
example : $suggestions[] = 'page__taxonomy__' . $term->bundle();
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.