CODATCODAT
RegisterLogin
ShopifyWWordPress
Install in 5 minutes

Add the Codat widget
to your Shopify store

No technical knowledge needed. Follow the steps below and the widget appears automatically on all product pages.

1

Open the Shopify editor

From the Shopify admin, go to Online Store → Themes and click the Customize button next to your active theme.

Shopify, Online Store Themes
2

Go to a product page

In the top bar of the editor, click the page dropdown and select Products → Default product. The widget will appear on all products, not just the selected one.

Shopify, selecting product page

If you can't find "Default product", select any product from the list, it doesn't matter which.

3

Add a Custom Liquid block

In the left column, under the Product information section, click Add block.

Shopify, Add block

In the window that opens, search for custom and select Custom Liquid.

Shopify, searching for Custom Liquid
4

Copy and paste the script

Copy the code below and paste it into the Liquid code box. Then click Save.

Liquid code
<div id="codat-widget"></div>
<script
  src="https://codat.ro/embed/widget.js"
  data-product="{{ product.title }}"
  data-report-url="{{ product.metafields.custom.codat_url }}"
  data-container="#codat-widget">
</script>
Shopify, Custom Liquid with the code pasted

After saving, open any product page and the widget should appear right away.

5

Add the verification report link

Optional

If a product has been verified on Codat.ro, you can display the report directly on its page. The widget will show the green card with the "View report" button. If you don't have any verified products yet, you can skip this step.

5A: one time only

Create the "codat_url" field

Before you can add the URL to a product, you need to "tell" Shopify what type of field it is. You do this once.

Go to Settings (the gear icon in the bottom-left corner) → Metafields and metaobjects → Products → Add definition.

Shopify Settings, Metafields and metaobjects

Fill it in exactly like this: Name = codat_url, Type = Single line text. Click Save.

Add product metafield definition

Type exactly codat_url in the Name field, no spaces, no capital letters. Shopify automatically generates custom.codat_url below, that's correct.

5B: on each verified product

Add the report link to the product

Go to Products, open the verified product and scroll down. You'll see the Metafields section with the codat_url field. Paste the report link you received from Codat.ro there and click Save.

The report link looks like this: https://codat.ro/verification?id=...

Done! Here's how it looks on verified products

Codat.ro widget, verified product

Automatically detected devices

The widget appears automatically if the product title contains one of these words:

iphonesamsungipadmacbookapple watchxiaomihuaweionepluspixelgalaxyredmirealmeoppovivomotorolanokiasony xperiaasus rog

Need help?

We'll help you with the integration, completely free.

contact@codat.ro

Still not convinced?
Ask an AI about us.

ChatGPTGeminiDuck AI

Codat.pro

Resources

  • PRO Portal
  • Pricing
  • Request PRO access
  • Integrations
  • Frequently Asked Questions

Company

  • About us
  • Contact
  • For individuals

Legal

  • Terms and conditions
  • Privacy
  • Cookies

Website operated by

FIXLY TECHNOLOGY SRLcontact@codat.ro
Tax ID: 47040460Registration No: J2022000789071
Calea Națională 37A, Botoșani, România
Alternative dispute resolution, ANPC
RefundsData usageData deletion

© codat.pro · All rights reserved