---
title: "Overview"
canonical_url: https://support.digitalphotogallery.com/articles/article/bcf9b6e0-bb61-11e8-899a-3225061e24b0
short_url: https://dpg.support/ameg
category: "Images > Code Fragments"
locale: en
updated_at: 2018-09-18T16:46:02Z
source: Digital Photo Gallery Support
---

# Overview

Code fragments are an advanced feature which can be added to images in higher tier accounts.

Shared code fragments can be created on the settings screen, these can contain variables:

```html
<!-- VARIABLE:product_component -->
```

They can be used on an image using this syntax:

```html
<!-- FRAGMENT:shopify[product_component=zz|product_id=323021209646] -->
```
