Hello,
I’m starting with developing Shopware modules and probably I don’t understand everything yet, and because of that, I’ve stuck. Maybe someone will be able to help me.
I’m trying to get products on custom page by using below code.but product display without image and price…
{% for product in page.product.elements%}
{% if product.extensions[‚news‘].elements|length > 0 %}
{% set newsproducts = product.extensions[‚news‘].elements %}
{% for newsproduct in newsproducts%}
{% if newsproduct.id == newscategoryId %}
{% sw_include ‚@Storefront/storefront/component/product/card/box-standard.html.twig‘ with {‚product‘: product} %}
{% endif %}
{%endfor%}
{% endif %}
{%endfor%}