Product Reference Field

Overview

The product reference Custom Field stores one or more references to products, and prints a link to the product by default.

With customizations, you can reference products and show attributes from the products to create features like a related products section. Our tutorial on Creating a Related Products Section could be used as a starting point.

Tip: See also, Basic Field Settings.

Default Display

Final_SC.png

Field Creation Form 

ProdRef1.png

Tip: Product Reference field types are under the Reference drop-down. Checking "Allow Multiple Selections" allows users to reference more than one product in the content entry form.

Content Entry Form

ProdRef2.png

Default Liquid Code

The Edit Code section allows a user to edit how a field prints or functions. The default code for this type of field is found below. 

ProdRef3.png

For more information about code customization and the code editor itself, visit our Guide to the Snippet Editor.

Additional Resources & Documentation

Shopify: Liquid Template Language Documentation

Shopify: How to Use all_products in a Shopify Theme

Shopify: All Products Global Variable

Custom Fields: Creating a Related Products Section

Custom Fields: Theming Examples & Tutorials