Certificate metafields and the product-page block
Jewel Value can put a link to a product's valuation certificate on your storefront product page.
New shops start with it off
For a shop installed from now on, showing certificates to shoppers is off by default. A shop that was already showing certificates keeps showing them until its owner turns them off. While it is off, nothing is added to your product pages and shoppers cannot open any certificate, even if a theme block is already in your theme. To turn it on, open the Storefront display panel on the Jewel Value home page in Shopify admin and choose Turn on under Show certificates to shoppers. The certificate page shows the item, its value and the date. You can turn it off again at any time and the links are removed.
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:
- 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.
- Adjust the heading, description, badge, button text and colours if you like.
- 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.