Skip to content
Garanify

Custom shop Snippet

Place the notice in a custom shop

Last updated 18 November 2026

In short

The snippet places the notice on product page, cart and checkout, each time before the buy or order button. data-places chooses the places. A fixed spot is set with the placeholder data-gfy="notice", another anchor with selectors in the configuration.

Choose places

The attribute data-places takes product, cart and checkout, separated by commas. Without it, all three apply.

<script src="https://SNIPPET-ADDRESS/garanify.min.js" defer data-lang="auto" data-places="product,cart"></script>

Placeholder for a fixed spot

A placeholder wins over detection. The notice appears exactly there:

<div data-gfy="notice"></div>

Selectors

If the snippet does not find the button, name the anchor in the configuration:

<script type="application/json" id="gfy-config">
{ "selectors": { "product": "#buy-box", "cart": { "selector": ".checkout", "position": "before" } } }
</script>

Related questions

Can I show the notice on every page?

With a placeholder, yes. Product page and cart or checkout are common and sufficient.

Is the graphic changed?

No. It is the official graphic in colour. Only the width adapts.

What does position before do?

The notice appears before the named element. With after it appears behind it.

Sources

  1. Commission Implementing Regulation (EU) 2025/1960, OJ L of 2 October 2025 (opens in a new tab)

Was this article helpful?

What was missing? Send us a short note and we will add it to the article. Send feedback by email