https://xxxx.myshopify.com/search?type=product のtypeの値を取得したい時のLiquidでの処理を紹介いたします。 下記コードをファイル名:snippets/function_get_query_value_by_key.liquidで保存します。 {%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%} {%- assign pageUrl = contentForQuerystring | split:'"pageurl":"' | last | split:'"' | first | replace:'\/','/' | replace:'%20',' ' | replace:'\u0026','&' -%} {%- assign ge
![[Liquid]GETクエリの値を取得する|hmeta](https://cdn-ak-scissors.b.st-hatena.com/image/square/36d273e94fca45a6aa2f84fd6db957454739a30a/height=288;version=1;width=512/https%3A%2F%2Fassets.st-note.com%2Fproduction%2Fuploads%2Fimages%2F44645245%2Frectangle_large_type_2_b9322b8a71c86b84924747a44290e9d5.png%3Ffit%3Dbounds%26quality%3D85%26width%3D1280)