Search by

webtechsolutions / module-tracelogic

webtech-solutions

TraceLogic EUDR / Green Claims compliance gateway connector for Magento 2.

Package info

github.com/RedSign77/tracelogicmagento

Type:magento2-module

pkg:composer/webtechsolutions/module-tracelogic

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-10-18 09:27 UTC

This package is auto-updated.

Last update: 2026-10-23 14:20:18 UTC


README

Magento 2.4.x PHP License TraceLogic

Real-time transaction compliance, supplier evidence validation, and cryptographic audit trails directly inside your Magento 2 checkout and catalog.

Explore TraceLogic Gateway โ€ข Run Free Catalog Audit โ€ข Report Issue

Overview

The WebtechSolutions_TraceLogic extension integrates Magento 2 with the TraceLogic Gateway API. It acts as an automated, sub-50ms compliance firewall for your store, validating EU Deforestation Regulation (EUDR) requirements and Green Claims Directive policies before orders are released.

Instead of facing severe regulatory fines (up to 4% of global turnover) or stop-ship delays, this module automatically verifies supplier evidence, flags unsubstantiated greenwashing claims, and generates a tamper-proof cryptographic audit trail.

Key Features

๐Ÿ›ก๏ธ Real-Time Checkout Compliance Gate

  • Pre-Submission Validation: Evaluates cart items against HS-code EUDR rules (geolocation polygons, DDS references) and text descriptions for unverified environmental claims.
  • Fail-Open Resilience with Circuit Breaker: If the compliance API experiences network latency or downtime, the checkout never breaks. Orders pass gracefully and are flagged for asynchronous re-evaluation.
  • Configurable Action: REJECTED orders are blocked or automatically placed on hold. WARNING thresholds can be customized.

๐Ÿ”„ Intelligent Order Recovery & Auto-Release

  • Automatic Order Hold: Holds non-compliant orders rather than losing the customer.
  • Hourly Re-Check Cron: Continuously monitors held orders. Once missing supplier data or certificates are submitted, orders are automatically released for fulfillment.
  • Automated Supplier Outreach: Sends an automated request email directly to the supplier (tracelogic_supplier_email) upon rejection with an upload magic link.

๐Ÿ“Š Deep Admin Integration & Cryptographic Audit

  • Order Grid Badge & Detail View: View compliance score (0โ€“100), status badges, violation reason codes, and the unique chk_vault_* audit token.
  • One-Click Audit Verification: "Verify Audit Entry" and "Re-Check" buttons allow direct validation against the immutable hash-chain vault.

๐Ÿ” Automated Catalog Scanning

  • Proactive Risk Detection: Run bin/magento tracelogic:catalog:scan or rely on the nightly cron to audit entire product catalogs.
  • Admin Save Interceptor: Warns catalog managers directly in the admin panel if a saved product contains unverified green claims or invalid EUDR data.
  • Compliance Dashboard: Dedicated report view under TraceLogic > Compliance Report.

๐Ÿ”— Two-Way Supplier Sync

  • Magic Link Issuance: Generate secure, single-use supplier upload tokens directly from Magento admin (TraceLogic > Supplier Data Request).
  • Attribute Auto-Population: Synchronizes validated producer country, geolocation coordinates, DDS references, and verified certificates into empty product attributes without overwriting manual data.

Architecture & How It Works


[ Customer Checkout ]
โ”‚
โ–ผ
[ Magento 2 Plugin (Checkout Hook) ]
โ”‚
โ”‚  REST HTTPS (< 50ms)
โ–ผ
[ TraceLogic Gateway API ]
โ”œโ”€โ”€ EUDR HS-Code & GeoJSON Rules
โ”œโ”€โ”€ Green Claims Pattern Scanner
โ””โ”€โ”€ Cryptographic SHA-256 Audit Vault
โ”‚
โ–ผ
[ Response: APPROVED | REJECTED | WARNING ]
โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ–ผ                                  โ–ผ
[ APPROVED ]                   [ REJECTED / HOLD ]
Order placed successfully      Order placed on Hold + Supplier
Audit token saved to Order     notified via Magic Link

Requirements

  • Magento Open Source or Adobe Commerce: 2.4.6, 2.4.7 or higher
  • PHP: 8.1, 8.2, 8.3, or 8.4
  • Frontend Compatibility: Native Luma, Hyvรค Themes, and Headless (GraphQL ready)
  • TraceLogic Gateway Account: Base URL and active API Key (Starter, Pro, or Enterprise)

Installation

Manual Installation

  1. Download or clone this repository into app/code/WebtechSolutions/TraceLogic.
  2. Run the deployment commands:
bin/magento module:enable WebtechSolutions_TraceLogic
bin/magento setup:upgrade
bin/magento cache:flush

Configuration

  1. In the Magento Admin, navigate to: Stores > Configuration > Webtech Solutions > TraceLogic Compliance.

  2. Set configuration at the Website or Default scope:

  • Enable: Yes
  • Gateway Base URL: https://tracelogicgateway.com
  • API Key: sec_live_...
  • Action on Rejection: Block Checkout or Place Order on Hold
  • Action on Warning: Allow Order or Flag for Review
  1. Attribute Mapping: Configure custom attributes or use the automatically provisioned tracelogic_* attributes located under the TraceLogic Compliance attribute group.

CLI Commands Reference

Command Description
bin/magento tracelogic:catalog:scan Runs a full compliance scan across all catalog products and updates compliance reports.
bin/magento tracelogic:supplier:sync Pulls verified supplier evidence (geolocation, DDS, certs) from TraceLogic into empty product attributes.
bin/magento tracelogic:supplier:sync --supplier=CODE Runs targeted evidence synchronization for a specific supplier code.
bin/magento queue:consumers:start tracelogic.order.recheck Starts the consumer worker to re-evaluate orders placed during circuit-breaker/offline events.

Free Compliance Risk Assessment

Not sure if your catalog complies with the latest EU regulations? Test your product feed instantly without installing anything:

๐Ÿ‘‰ Run Free CSV Catalog Audit (No registration required)

License & Support

  • License: Open Software License (OSL 3.0) / Academic Free License (AFL 3.0)
  • Developed By: Webtech Solutions
  • Documentation & Issues: Please submit bugs and feature requests via GitHub Issues.