Skip to main content
Part of EU Deforestation Regulation (EUDR). On Magento, the two EUDR values are read from product attributes at checkout and sent to Global-e by the Global-e module. This is a configuration task, not custom code: you create two product attributes, list them in the module settings, and populate the values on your products. On Magento the attribute codes themselves must be exactly eudrDdsReference and eudrTaricCode.

Prerequisites

What you need to do

  1. Create two product attributes. Navigate to Stores, then Attributes, then Product.
Stores menu with Attributes, Product highlighted
  1. Click Add Attribute and create two attributes with the codes eudrDdsReference and eudrTaricCode. Set Catalog Input Type to Text Field and Values Required to No.
New Product Attribute form with the EUDR attribute codes in Default Label
  1. List them in the Global-e module. Navigate to Stores, then Configuration, then Services, then Global-e, then Global-E API Settings, then Products. Enter eudrDdsReference,eudrTaricCode (comma-separated, no spaces) in both fields: Extra Product Attributes (Configurable), and Extra Product Attributes (Simple). If you already list EU Product Identifiers or US MID attributes, append the EUDR codes to the same list in both fields.
Extra Product Attributes (Configurable) and (Simple) set to the EUDR attribute codes
  1. Save and flush cache. Click Save Config, then flush the Magento cache (System, Cache Management, Flush Magento Cache).
Flush Magento Cache button in Cache Management
  1. Populate the values on each variant and/or configurable parent.

Key points

  • One pair of values per cart line. For simple products, populate that SKU’s attributes. For configurable products, set values on the parent, on each child, or both: when a child has no value, the module uses the parent’s value.
  • Both settings must match. List eudrDdsReference,eudrTaricCode in both Extra Product Attributes (Configurable) and Extra Product Attributes (Simple).
  • Exact camelCase. The Magento attribute codes and the keys sent to Global-e are both eudrDdsReference and eudrTaricCode.
  • Omit, don’t fake. When a variant has no value, leave the key out. Never send an empty string, NA, 0 or -.
  • EU PID keeps working. standardcode and mididentifier are sent unchanged alongside the EUDR keys.

Quick check before go-live