タイトルの通り、1月31日までは取得できていたメタフィールドの値が、2月1日以降のどこかのタイミングから値が取得できなくなっていました。
以下のような記述をしています。
## Ebooks
{% for order in customer.orders %}
{% for line_item in order.line_items %}
{% if line_item.product.metafields['app--1234567--hogehoge'].content_id != null %}
{{ line_item | image_url: height: 120 | image_tag }}
{{ line_item.title }}
View
Order Date:{{ order.created_at | date: format: 'abbreviated_date' }}
{% endif %}
{% endfor %}
{% endfor %}
{% schema %}
{
"name": "Ebooks",
"target": "section",
"stylesheet": "ebooks.css",
"javascript": "ebooks.js",
"templates": ["index", "customers/account", "customers/order"],
"settings": []
}
{% endschema %}
注文履歴のページに追加するテーマ拡張で、特定のメタフィールドに値がある注文データのみを表示するというものです。
line_item.product.metafields['app--1234567--hogehoge'].content_id
この部分で値が取得できなくなっています。
Shopify側でのなにか変更があったのでしょうか?
この変更が影響していますか?
https://shopify.dev/changelog/simplifying-how-metafield-and-metaobject-permissions-work
なにかご存知であればご教示頂きたいです。
よろしくお願いします。