Skip to content

Compare products with Shopify

Hive Engine leads for your product data. This guide gets your images into the shop and finds products whose Shopify listing no longer matches Hive Engine.

Before you start

  • An admin account or a user with write access to Production.
  • A connected Shopify store (Settings → Integrations).
  • A product linked to Shopify, or one you create with Create new Shopify product.
  • About 10 minutes.

Step 1: Upload images

  1. Open Production → Products, the product (see Edit products in the editor) and the Sales & Marketing tab.
  2. Under Images, click Upload images and pick one or more photos (JPEG, PNG or WebP, up to 10 MB each).
  3. Put the images in order with Move forward and Move back. The first image is the main image in the shop.
  4. Click Save changes at the top (Ctrl+S).

Screenshot 01: Upload product images

Step 2: Send images to Shopify

  • New product: Create new Shopify product sends the images along.
  • Linked product: click Send images to Shopify. If you have unsaved changes, Hive Engine first asks “Save your changes first?”; Save and continue carries on. Shopify then has exactly Hive Engine’s images in Hive Engine’s order. Images that were only added in Shopify stay there.

Shopify needs a few seconds until the images are ready. After that, Traceqode and the product list show the images from Shopify too.

Step 3: Check all linked products

  1. Above the product list, click Check against Shopify. While it runs it shows, for example, “Checking… 12/38”.
  2. Afterwards you see how many products are linked, how many have differences, which couldn’t be checked, and when the last check ran.
  3. In the list, a warning icon next to the Shopify status marks every product with differences. Hover over it for the count, for example “3 differences from Shopify”. If you don’t see the Shopify column, show it with Columns.

The check changes nothing, neither in Hive Engine nor in Shopify.

Screenshot 02: Check all products

Step 4: Fix differences per product

  1. Click the warning icon in the list. The product opens in the editor; the Shopify comparison is in the Shopify panel on the right.
  2. Click Compare with Shopify. If you have unsaved changes, Hive Engine first asks “Save your changes first?”, so nothing you just changed gets lost. Each row shows the field with its value in Hive Engine and in Shopify.
  3. For each row choose Send (Shopify gets Hive Engine’s value) or Take over (Hive Engine gets Shopify’s value). The suggested direction is highlighted: Send, unless the field is empty in Hive Engine.
  4. Send all or Take over all handles every difference of this one product at once.

When it says “No differences from Shopify.”, both match again and the warning icon in the list disappears.

Screenshot 03: Differences of one product

Compare stock

For linked products the comparison also has a Stock (main location) row. It compares the Stock in Hive Engine with the stock (“available”) at your Shopify main location. Take over sets the stock in Hive Engine to Shopify’s value and records it in the stock history with the reason “Shopify sync”. Send sets the stock in Shopify to Hive Engine’s value. Send all and Take over all include the stock.

Screenshot 05: Stock in the comparison

Requirements:

  • A Main location is chosen under Settings → Integrations → Shopify (see Connect Shopify).
  • The Shopify app has the optional permissions read_inventory, write_inventory and read_locations.

If the stock cannot be compared, the row shows the reason, never a “0”, and Send and Take over are locked:

Message in the rowMeaningWhat to do
No main location chosenThe main location is missing in the settings.Click Choose main location and pick it.
Permission missing: read_inventoryThe app lacks the permission to read stock.Add the permissions in a new app version, see Optional: stock in the comparison.
Not tracked in ShopifyShopify does not track stock for this variant.Turn on “Track quantity” for the variant in Shopify. Hive Engine never turns it on by itself.
Not stocked at the main locationThe variant is not stocked at the chosen location.Stock the variant at that location in Shopify or choose another main location.
Stock couldn’t be readShopify rejected the request. After the colon comes Shopify’s reason.Try again later. Only the stock row is affected; the other fields can still be compared.

Bundles are compared like any other product: if their variant is not tracked in Shopify or not stocked at the main location, you see the same messages. If the stock in Shopify changed after you compared, Send does not overwrite it but reports: “Bestand in Shopify hat sich inzwischen geändert — bitte neu vergleichen” (“Stock in Shopify has changed in the meantime — please compare again”). The message currently appears in German. Click Compare with Shopify again.

Language and translation in the comparison

The Title and Description rows carry your shop’s main language, for example Title (EN) in an English shop (see Main language and translation). If Sync translation is on, two rows for the other language are added, for example Title (DE, translation) and Description (DE, translation). They compare the Hive Engine field of the second language with the Shopify translation. Send, Take over, Send all and Take over all work as for any other field. When taking over, an empty Shopify value never overwrites a field in Hive Engine. While the switch is off, these rows do not exist and Hive Engine neither reads nor writes translations.

  • If the second language is not added to your shop, a note appears, for example “German is not added as a language in your shop.”. It does not count as a difference.
  • If Shopify marked the translation as outdated because the main text changed afterwards, “Marked as outdated in Shopify” appears next to it. The current value is still compared.
  • If the main language or the switch changes in the settings, the last comparison counts as outdated and Hive Engine checks all products again.

If the translation cannot be compared, the row shows the reason, never an empty value, and Send and Take over are locked:

Message in the rowMeaningWhat to do
Permission missing: read_localesThe app lacks the permission to read the shop languages.Add read_locales (and write_translations for sending) in a new app version.
Translation not readable: …Shopify rejected the query. After the colon comes Shopify’s reason.Try again later. Only the translation rows are affected.

Screenshot 06: Comparison with language and translation

Step 5: Show nutrition values in your shop

Hive Engine writes the nutrition values into Shopify metafields. The fields hold the values only; the labels (“Fat”, “of which sugars” …) come from your theme, which also translates them.

MetafieldContent from Hive EngineExample
custom.nutrition_titleHeading for the reference amount (per 100 g or per 100 ml)Nährwerte pro 100g
custom.nutrition_energyEnergy in kcal and kJ51 kcal / 218 kJ
custom.nutrition_fatFat0 g
custom.nutrition_fattyacidsof which saturates0 g
custom.nutrition_carbCarbohydrate13.16 g
custom.nutrition_sugarof which sugars13.16 g
custom.nutrition_proteinProtein0 g
custom.nutrition_saltSalt21.89 g
  • The values go out with Create new Shopify product, later with Send in the comparison.
  • If your shop doesn’t have these fields yet, Hive Engine creates them the first time it sends (named “Nährwerte …”, visible in the shop). Existing fields are left as they are, and values are written in the format your shop already uses.
  • Hive Engine writes the heading in your shop’s main language and translates it into the shop’s other languages (German, English, French, Italian).

Set it up in your theme

The fields only show in your shop once your theme displays them. You set this up once.

Option A: your theme has a nutrition or table block

  1. In Shopify, open Online Store → Themes and click Customize on your theme.
  2. At the top, choose the template Products → Default product.
  3. Select the nutrition block, or add it with Add block.
  4. For each value, click the Connect dynamic source icon and choose the matching metafield, for example Nährwerte Fett. For the heading, choose Nährwerte Titel.
  5. Click Save.

Screenshot 04: Connecting nutrition values in the theme editor

Option B: any theme, with a Liquid block

  1. Open the Default product template in the theme editor as above.
  2. In the product information section, click Add block → Custom Liquid.
  3. Paste this code and click Save:
{%- assign nw = product.metafields.custom -%}
{%- if nw.nutrition_energy != blank -%}
<div class="nutrition">
<h3>{{ nw.nutrition_title.value | default: 'Nutritional values per 100g' }}</h3>
<table>
<tr><td>Energy</td><td>{{ nw.nutrition_energy.value }}</td></tr>
<tr><td>Fat</td><td>{{ nw.nutrition_fat.value }}</td></tr>
<tr><td>of which saturates</td><td>{{ nw.nutrition_fattyacids.value }}</td></tr>
<tr><td>Carbohydrate</td><td>{{ nw.nutrition_carb.value }}</td></tr>
<tr><td>of which sugars</td><td>{{ nw.nutrition_sugar.value }}</td></tr>
<tr><td>Protein</td><td>{{ nw.nutrition_protein.value }}</td></tr>
<tr><td>Salt</td><td>{{ nw.nutrition_salt.value }}</td></tr>
</table>
</div>
{%- endif -%}

The table only shows on products with an energy value. The labels in this code are fixed; for a shop in several languages, option A is better because the theme translates its labels itself.

Troubleshooting

SymptomCauseFix
”… is larger than 10 MB. Images can be at most 10 MB.”The image is too large.Export it smaller (e.g. 3000 px on the long side) and upload again.
“Only JPEG, PNG or WebP images are possible.”Another file format, e.g. HEIC or GIF.Save the image as JPEG or PNG.
“Storage full: files can be uploaded again once storage is freed or extended. …”Your company’s storage is full.Delete files you no longer need or extend storage under Settings → Plan & Billing.
Red warning icon: “Couldn’t be compared with Shopify”The Shopify product was deleted or the connection to Shopify is broken.Check the product in Shopify and the connection under Settings → Integrations; relink if needed.
“An empty field can’t be sent to Shopify.”The field is empty in Hive Engine.Fill in the field or choose Take over.
“Shopify has no value here, so the field in Hive Engine stays as it is.”The field is empty in Shopify.Choose Send to bring Hive Engine’s value into the shop.
The nutrition heading shows in German in other shop languagesThe app lacks the language permissions.Add read_locales and write_translations to your Shopify app and send the heading again.
The nutrition values don’t show in the shopThe theme doesn’t display the metafields yet.Set them up in the theme as described in step 5.
“No main location chosen”, “Permission missing: read_inventory” or another message in the stock rowSee the table under “Compare stock”.Choose the main location or add the permissions.
“Bestand in Shopify hat sich inzwischen geändert — bitte neu vergleichen”Someone changed the stock in Shopify after you compared.Click Compare with Shopify again and decide again.
“The Shopify check is already running.”A check is already running.Wait until it finishes; progress shows above the list. A check that makes no progress for 10 minutes counts as stopped and you can start it again.

What’s next