JSON file

Topic summary

A user urgently needs help accessing a JSON file within their Shopify theme. They have a script that requires the file’s full URL path (similar to how assets are accessed via CDN links like https://store.myshopify.com/cdn/shop/t/3/assets/zip-code.json), rather than just the filename.

Key Issue:

  • Need to obtain the complete CDN path/URL for a JSON file stored in theme assets
  • Script requires this path as a link to retrieve data

Current Status:

  • Another user is seeking clarification about whether the script needs to be added to the theme
  • The question remains unresolved with no solution provided yet
Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

Hello,

Please I need this URGENTLY,

Please I have a script, and the script needs to call a JSON file on the theme and get from him the data, but on the script, I need to put the path of the file, not the name, and the path as a link ( like this one: LIKE THIS ONE SHOULD BE: https//store.myshopify.com/cdn/shop/t/3/assets/zip-code.json )

This is an example

I need to know how can I copy the path of my file, please!

Thank you so much.

Hi Mohamed,

Trying to understand this a bit more - does the script need to be added to the theme?