# Shopify » Reference fields

A Shopify Reference field works similarly to the ACF reference type.\
\
From an editor's perspective, there is no functional difference, but the Liquid code now returns the referenced object directly without the need to do a lookup via a global object using a handle.\
\
So for example a Product reference returns the referenced product directly:

```liquid
{% assign ref_product = product.metafields.accentuate.ref_product.value %}
<p>The referenced product is {{ ref_product.title }}</p>
```

If you are referencing a file or an image from your Files list in Shopify, you can get the associated URL using the [Liquid filters *file\_url* and *file\_img\_url*:](https://shopify.dev/api/liquid/filters/url-filters#file_url)

```liquid
{% assign url = product.metafields.accentuate.ref_file.value | file_url %}
<p>The referenced file is {{ url }}</p>
```

{% hint style="warning" %}
Shopify reference field values cannot successfully be transferred to other stores due to the use of internal Shopify ids, which will vary across stores
{% endhint %}

{% hint style="success" %}
However, using ACF, you can choose to export Shopify Product references and Shopify Collection references using their respective handles, which you can then import into another store assuming the handles match across your stores
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.accentuate.io/metafield-definitions/fields/field-data-type/shopify-field-types/shopify-reference-fields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
