承接 esplin/module-customernumber 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

esplin/module-customernumber

最新稳定版本:1.0.0

Composer 安装命令:

composer require esplin/module-customernumber

包简介

Magento2 Customer Number Module

README 文档

README

Magento2 module for adding Customer Number attribute

Magento 2 Customer Number Extension

esplin_customernumber

Overview

The Magento 2 Customer Number extension introduces a new alphanumeric attribute, Customer Number, for customer accounts. This attribute serves as a unique identifier that can be mapped to external CRM or ERP systems, addressing a limitation in Open Source Magento where such an attribute is not natively available.

Features

  • Adds a Customer Number attribute to the Magento 2 customer entity.
  • Automatically appears in the Admin Customer Grid, allowing for easy sorting and filtering.
  • Exposed via REST API, ensuring seamless integration with external systems.
  • Supports alphanumeric values, making it ideal for mapping to third-party applications.

Installation

Using Composer

  1. Navigate to your Magento root directory.
  2. Run the following commands:
    composer require esplin/module-customernumber
    bin/magento module:enable Esplin_CustomerNumber
    bin/magento setup:upgrade
    bin/magento cache:flush

Configuration

No additional configuration is required. The Customer Number attribute is automatically available in:

  • Admin Panel: Under Customers > All Customers, as a column in the customer grid.
  • API Responses: Included in Customer-related REST API endpoints.

API Usage

The Customer Number attribute is included in Magento's customer API responses. Example:

{
  "id": 1,
  "email": "customer@example.com",
  "firstname": "John",
  "lastname": "Doe",
  "custom_attributes": [
    {
      "attribute_code": "customer_number",
      "value": "CUST-12345"
    }
  ]
}

Compatibility

  • Magento Open Source 2.4.x and later.
  • Compatible with PHP 7.4 and 8.x.

Support

For issues or feature requests, please open an issue in this repository.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2025-03-22