GARAN Tool for OpenCart 3.0.x (OCMOD)
=====================================

Adds the GARAN Tool embed (https://garan.ro) to your store:
  - the official EU harmonised legal-guarantee notice, opened in a modal from a
    link on the product page;
  - the EU GARAN durability-guarantee badge on the product page, shown only when
    the producer guarantee for the product exists in the GARAN database.

Installation
------------
1. Admin > Extensions > Installer: upload garan-tool.ocmod.zip.
2. Admin > Extensions > Modifications: click Refresh (top right).
3. Admin > Extensions > Extensions, choose "Modules", find "GARAN Tool",
   click Install (green +), then Edit (pencil).
4. Configure and Save. Defaults: enabled, notice link on, badge on,
   brand = manufacturer, identifier = model.
5. If you use theme caching: Dashboard > gear icon (top right) > refresh the
   Theme and SASS caches.

Settings
--------
- Status: loads <script src="https://garan.ro/embed/garan.js" defer> on every page.
- Notice link: shows a link that opens the legal-guarantee notice. Leave the
  text empty to use the default text for each storefront language.
- Badge: brand from the product manufacturer or a fixed text; identifier from
  the product Model, SKU, EAN, MPN or UPC; optional EU country.

Create a free account at https://garan.ro to register your domain, set up
automatic placement rules and use the visual picker.

Custom themes
-------------
The modification targets catalog/view/theme/*/template/common/header.twig
(before </head>) and catalog/view/theme/*/template/product/product.twig
(before <div id="product">). If your theme has different markup, add manually:
  - in header.twig, before </head>:
      {% if garan_tool_script %}<script src="{{ garan_tool_script|e }}" defer></script>{% endif %}
  - in product.twig, where the block should appear:
      {{ garan_tool_block }}
Anywhere else, you can also use <a href="#garantieEu">...</a> or
<div class="garan-badge" data-brand="..." data-identifier="..."></div>.

Uninstall
---------
Extensions > Extensions > Modules > GARAN Tool > Uninstall, then remove the
modification in Extensions > Modifications and click Refresh.
