如何在 Shopify 中获取以标题“A”开头的所有产品

时间:2021-06-04 13:15:08

标签: shopify

有没有办法在不使用集合的情况下在 Shopify 中获取以标题 A 或 B 或 C 开头的所有产品。

enter image description here

1 个答案:

答案 0 :(得分:0)

不幸的是,这可能是不可能的。 理想情况下,这会起作用,但不起作用:

  {% assign my_products = collections['all'].products | where: "title.first", "A" %}
  {% for product in my_products %}
      {{ product.title }}
  {% endfor %}