> For the complete documentation index, see [llms.txt](https://help.pixfizz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pixfizz.com/ecommerce/shopify-+-pixfizz/linking-products-to-shopify.md).

# Linking Products to Shopify

First you need to create your product in Shopify. This can either be a product with or without variations

It is important to make sure Track QTY is de-selected

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2F76Xgcc6vmoeMcW8cmetl%2Fimage.png?alt=media&amp;token=8b34299b-5082-4b97-8e3a-4140ab891fb8" alt=""><figcaption></figcaption></figure>

For Shopify Products **WITHOUT** variations the following fields are mandatory to be completed within Metafields in the Product

1. Pixfizz integration type (Product)
2. Pixfizz product SKU (Product)

The image below shows the fields available in Product metafields

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2Fplf4my5nO1RtiYYcvFVU%2Fimage.png?alt=media&amp;token=c31c873d-37c8-47dd-8d3a-041ee5a07ed2" alt=""><figcaption></figcaption></figure>

For Shopify Products **WITH** variations the following fields are mandatory to be completed within Metafields

* Pixfizz integration type (Product)
* Pixfizz product SKU (Variation Metafield)

The difference between the setup of Product Variation and a Product is the pixfizz SKU code **MUST** go in the variation metafield

The image below shows the fields available in Variation metafields

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FVIeDYxSeedEI82YbwlmK%2Fimage.png?alt=media&amp;token=1d8654a1-7931-4804-966c-f47f3b3c65d7" alt=""><figcaption></figcaption></figure>

#### Pixfizz Integration Type

The Pixfizz Integration Type determines how your product connects with the Pixfizz platform. There are three integration type options available and you would choose one of these 3 dependant upon the product you are connecting and the experience you want for the customer:

1. **editor**: This allows for the connection to go straight into the main pixfizz editor. An example of this would be to launch the editor for a photobook product.
2. **options-to-cart**: With this option a live preview editor will be launched. These could be used for notebooks.
3. **options-to-editor**: By using this option the user will end up in the main pixfizz editor, but they will first choose any options you have setup. An example maybe for a Calendar where the user would be asked for the start month/year.

Here is a brief overview of when to use each integration type:

* **Editor**: Choose this if your goal is to provide direct access to the main Pixfizz editor, ideal for products like photobooks where extensive customization is expected.
* **Options-to-Cart**: Opt for this if you want the customer to see a live preview of the product before adding it to the cart, suitable for items like notebooks where the final appearance is crucial.
* **Options-to-Editor**: Select this if you prefer the customer to make initial selections (e.g., start month/year for a calendar) before accessing the main editor for further customization.

#### Pixfizz Static Product Code

The Pixfizz static product code is a unique identifier for products that do not require user edits or modifications, such as ready-made goods with fixed specifications. This code becomes crucial in scenarios where you need to ensure proper tracking and management of such non-editable items within the Pixfizz platform. It ensures these products appear accurately in the Pixfizz admin interface, especially important for communication with fulfillment houses responsible for processing and delivering these items, as they need to know the predefined options associated with each order.

Pixfizz adjust cart QTY is used to disable the ability for a customer to update the qty of the item in the shopping cart. The main use of this is for Photo Print products. Customers should not be allowed to change QTY in Carts for these types of items. To disable the updating of cart QTY set this to "true"

#### Pixfizz Static Product Code

To enable this feature, set the Pixfizz adjust cart QTY property to false. This ensures that once a customer selects the quantity, they cannot alter it during checkout, maintaining consistency in order processing.

#### Pixfizz product SKU

For products without Shopify variations, it's important to input the Pixfizz product SKU accurately. Ensure that the SKU:

* Is entered correctly without any typos.
* Contains no spaces.

This step is crucial to link Shopify with the correct product in Pixfizz.

#### Pixfizz extra page addon

This will be used for Photo books. A requirement is that you have added a product which is appicable for the extra price of a page in a photobook - Please note that Pixfizz will add 2 or multiples of 2 Pages at a time - as set by the template definition in Pixfizz. The pricing in shopify is per Page.

you do not need an image in the products setup for extra pages - you just need separate products if you want different pricing

To connect Extra Page pricing to a Photo book - find the metafield shown below

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2Fc5ICXtcpPke1eVbYgQC2%2Fimage.png?alt=media&amp;token=8c8ffaac-9e5b-4b61-b55a-61c63fe7f5a9" alt=""><figcaption></figcaption></figure>

When you click in the box a modal will appear. here you can search for the product that you setup to add extra pages pricing

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FRztyQAFe9xfK34uKpI80%2Fimage.png?alt=media&amp;token=e3d3b708-b53e-4028-b65f-976017399c0c" alt=""><figcaption></figcaption></figure>

Another Modal will appear

<figure><img src="https://1409369501-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDLSaKAH9aauCVHoiuVBl%2Fuploads%2FEjQ3WKGolad1DbIyN0rK%2Fimage.png?alt=media&amp;token=ff424c42-09fb-42f9-b74d-1cbe2b5ba80c" alt=""><figcaption></figcaption></figure>

Search for the product, select and click on add

Where extra pricing is added to products we recommend turning off the showing of pricing in the editor. This can be done in the Design Tool configuration in Pixfizz.

**Pixfizz option addons**

Option addons allow you to charge extra for specific Pixfizz options (e.g. a premium cover material, a special finish) by adding a separate Shopify product to the cart when the customer selects that option.

**How it works:**

When the customer selects a linked option in the Pixfizz editor or preview modal, Pixfizz automatically adds the correct addon variant to the Shopify cart alongside the main product. When the customer changes their selection, the addon is updated accordingly. Addon line items appear in the cart as sub-rows beneath the main product and cannot be edited or removed independently by the customer.

**Setup steps:**

1. **Create an addon product** in Shopify to represent the option. For example, if you have a "Cover Material" option with values like "Standard" and "Premium Leather", create a product called "Cover Material Addon" (or similar).
2. **Set `pixfizz.option_type_code`** on the addon product. This is the code of the Pixfizz variant or template option that this addon maps to. You can find this code in your Pixfizz admin under the product's variant/option settings.
3. **Create variants** on the addon product — one for each option value that has an extra price. For example, "Premium Leather" at $15.00. You can skip option values that don't have an additional cost.
4. **Set `pixfizz.option_value_code`** on each variant. This is set as a **Variant metafield** and must match the corresponding option value code in Pixfizz.
5. **Link the addon product** to your base product using the `pixfizz.option_addon_products` metafield on the base product. This metafield accepts multiple products, so you can link several addon products if the base product has multiple options with extra pricing.
6. **Hide addon products from search** using the `seo.hidden` metafield (set to `1`). Customers should not be able to find or purchase addon products directly — they are only added to the cart automatically by Pixfizz.

**Variant-level overrides:** If different Shopify variants of your base product need different option addons, you can also set `pixfizz.option_addon_products` on individual variants. The variant-level value takes precedence over the product-level value.

> **Important:** Every variant of the addon product must have `pixfizz.option_value_code` set correctly. If this metafield is missing or blank on any variant, the addon product data may not load correctly and can cause errors in the integration.

**Pixfizz Adjust Cart QTY**

Pixfizz Adjust Cart QTY is used to disable the ability for a customer to update the quantity of the item in the shopping cart. The main use of this is for Photo Print products — customers should not be allowed to change quantity in the cart for these types of items, because the quantity is managed inside the Pixfizz photo prints interface.

To disable the updating of cart QTY, set this metafield to **False** on the product.

**Pixfizz Static Product Code**

The Pixfizz Static Product Code allows you to bring non-personalized Shopify products (frames, film, accessories, gift cards, etc.) into your Pixfizz admin as part of the same order. This gives you a single consolidated order view in Pixfizz, so you don't need to cross-reference Shopify for the non-personalized items.

This is particularly useful when communicating with fulfillment houses, as they can see the complete order — including both personalized and non-personalized items — in one place.

**Setup steps:**

1. **Create the metafield in Shopify.** Go to Settings → Custom data → Products → Metafields and add:
   * **Name:** Pixfizz Static Product Code
   * **Namespace and key:** `pixfizz.static_product_code`
   * **Type:** Single line text
2. **Optionally create the same metafield on Variants** (Settings → Custom data → Variants → Metafields) if different Shopify variants should map to different Pixfizz products. The variant-level value takes precedence over the product-level value.
3. **Create matching static products in Pixfizz.** The product `code` in Pixfizz must exactly match the value you set in the Shopify metafield.
4. **Set the metafield value** on each non-personalized Shopify product (or variant) to the matching Pixfizz product code.
5. **Add a hidden cart property** to your Shopify theme so that when the product is added to cart, the mapping is included in the line item data. For Dawn v14, add this inside the product form in `snippets/buy-buttons.liquid`:

liquid

```liquid
{%- assign pixfizz_static_product = product.selected_or_first_available_variant.metafields.pixfizz.static_product_code -%}
{%- if pixfizz_static_product == blank -%}
  {%- assign pixfizz_static_product = product.metafields.pixfizz.static_product_code -%}
{%- endif -%}
{%- if pixfizz_static_product != blank -%}
  <input type="hidden" name="properties[_pixfizz_static_product]" value="{{ pixfizz_static_product | escape }}" />
{%- endif -%}
```

The exact location of this code depends on your Shopify theme. For themes other than Dawn, look for the product form that contains the add-to-cart button and place this code inside it.

**How it's processed:** When the order webhook fires, Pixfizz reads the `_pixfizz_static_product` property on each line item. If it finds a match to a static product by code, it creates an orderline in Pixfizz for that item. The property is underscore-prefixed, so it is hidden from the customer in the Shopify cart and checkout.

**Notes:**

* If the static product code doesn't match any product in Pixfizz, the line item will not be mapped.
* Static product orderlines in Pixfizz have no project, template, or production files attached — they are informational records for order tracking and fulfillment communication.
