Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • List Views
      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • Manufacturing
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module
      • e-commerce Integration Module

        • EAEcommerceAddItemToLinker
        • EAEcommerceGuessItemBySKU
        • EAEcommerceReadAbandonedCarts
        • EAEcommerceReadOrders
        • EAEcommerceReadOrdersFromDate
        • EAEcommerceShippingHandler
        • EAEcommerceUploadQuantityCSVFileToFTPServer
        • EASalesRecalculateFreeAndRelatedItems
        • .
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EAEcommerceAddItemToLinker

This document was generated using Claude.ai

Overview

Adds inventory items to Magento e-commerce integration linkers. Creates or updates MagentoItemLinker documents to establish connections between ERP inventory items and Magento site configurations, enabling product synchronization between systems.

When This Action Runs

Manual execution on inventory items that need to be linked to Magento e-commerce sites. Typically used during product setup or when adding existing items to e-commerce integration workflows.

How It Works

  1. Validates site code - Finds the Magento site using the provided site code
  2. Searches existing linkers - Looks for committed MagentoItemLinker documents for the site
  3. Checks for existing item - Searches for the current item in existing linker documents
  4. Creates or updates linker - Either creates new linker or uses the most recent one
  5. Adds item line - Creates new MagentoItemLinkerLine with item and SKU information
  6. Applies field mappings - Copies additional fields using the field mapping parameter
  7. Sets current line - Marks the new/existing line as the current line for processing
  8. Commits changes - Saves the linker document with the new item association

Parameters

Parameter 1: Site Code (Required) - Code of the MagentoSite to link the item to

Parameter 2: Linker Line Fields Map (Optional) - Field mappings for additional data copying

Parameter 3: Linker File Code Template (Required) - Template for generating linker document codes

Example Field Mapping

line.dimensions.box=name2
line.description=description
line.weight=weight

Database Tables Affected

  • MagentoItemLinker - Creates new or updates existing linker documents
  • MagentoItemLinkerLine - Creates new line entries for items
  • MAGMagentoSite - References the target Magento site (read-only)
  • InvItem - Source inventory item being linked (read-only)

Module: magento

Full Class Name: com.namasoft.modules.magento.utils.EAEcommerceAddItemToLinker

Edit On github
Last Updated:: 3/18/26, 11:30 PM
Next
EAEcommerceGuessItemBySKU