Skip to content
Back to integrations

Certificate metafields and the product-page block

Jewel Value can put a link to a product's valuation certificate on your storefront product page.

What Jewel Value writes

When you link a product to an approved valuation, Jewel Value sets a product metafield:

  • Namespace: jewel_value
  • Key: certificate_url
  • Type: single_line_text_field
  • Value: the certificate's address on your store, under /apps/jewelvalue/certificate/

Only approved valuations are published, because the certificate page shows only approved valuations.

Linking a product

On Integrations > Shopify, find the product in Synced Products and select Link (or Change), then choose the valuation.

  • If the valuation is already approved, the metafield is written straight away.
  • If it's still a draft or pending review, nothing is written yet. When the valuation is approved — on its own page, with bulk approval, or by a CSV import — Jewel Value writes the metafield for every product linked to it, a moment later. You don't need to link it again.
  • When you approve an amendment that replaces a valuation, products linked to the original move to the amendment, and their metafield is updated to the amendment's certificate.

If a product's certificate link is still missing — for example Shopify was unavailable at the moment of approval — select Change and choose the same valuation again to publish it.

Show it with the theme block

The easiest way is the Valuation Certificate app block:

  1. On the Jewel Value home page in Shopify admin, use the Storefront display panel's button to open the theme editor with the block already added to your default product template — or open your theme editor yourself, go to the product template and add the Valuation Certificate block from the Apps section.
  2. Adjust the heading, description, badge, button text and colours if you like.
  3. Save the theme.

The block appears only on products that have a certificate link.

Or use Liquid

If you'd rather write it into your theme yourself:

{% assign jv_certificate_url = product.metafields.jewel_value.certificate_url.value %}
{% assign jv_scheme = jv_certificate_url | downcase | slice: 0, 8 %}
{% if jv_certificate_url != blank and jv_scheme == 'https://' %}
  <a href="{{ jv_certificate_url | escape }}" target="_blank" rel="noopener">
    View valuation certificate
  </a>
{% endif %}

The check for https:// keeps the link safe if someone edits the metafield by hand in Shopify admin.

Removing it

To stop showing certificates, remove the block (or your Liquid) from the theme.

Was this article helpful?

Still have questions?

Our support team is here to help.

Contact Support
    Certificate metafields and the product-page block | Help Center | Jewel Value