ドロップダウンメニューの孫リンクに商品リンクを設定しており、リンク先の商品画像を表示させたいのですが方法がわかりません。
下記<img src="{{ grandchildlink.featured_image | img_url: 'small' }}">では機能しません。
孫リンクの画像オブジェクトを英語でも調べましたが、わからずです。
方法をご存知の方、ご教示頂けますでしょうか?
{% for grandchildlink in childlink.links %}
<li{% if grandchildlink.active %} class="site-nav--active"{% endif %}>
<a
href="{{ grandchildlink.url }}"
class="site-nav__dropdown-link"
data-meganav-type="child"
{% unless request.page_type == 'index' %}{% if grandchildlink.active %}aria-current="page"{% endif %}{% endunless %}
tabindex="-1">
{{ grandchildlink.title | escape }}
<img src="{{ grandchildlink.featured_image | img_url: 'small' }}">
</a>
</li>
{% endfor %}