定制 amphibee/akeneo-connector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

amphibee/akeneo-connector

Composer 安装命令:

composer require amphibee/akeneo-connector

包简介

Connect Akeneo with WooCommerce. The plugin uses the Akeneo api to import Akeneo PIM data (attributes, products, variations..)

README 文档

README

Overview

The Akeneo Connector for WooCommerce is a powerful integration tool that synchronizes product data between Akeneo PIM (Product Information Management) and WooCommerce. This connector enables seamless product data management by importing various entities from Akeneo to your WooCommerce store.

Features

  • Comprehensive Data Import: Import categories, attributes, attribute options, product models, and products from Akeneo to WooCommerce.
  • Smart Change Detection: Uses hash-based change detection to only import modified data, significantly improving performance.
  • Multilingual Support: Full support for multilingual content with automatic translation synchronization.
  • Robust Error Handling: Advanced error logging and retry mechanisms for API calls.
  • WP-CLI Commands: Convenient command-line interface for running imports and migrations.
  • Variable Products Support: Complete support for Akeneo product models as WooCommerce variable products.

Requirements

  • WordPress 5.0+
  • WooCommerce 4.0+
  • Akeneo PIM 4.0+
  • PHP 7.4+

Installation

  1. Upload the plugin files to the /wp-content/plugins/akeneo-connector directory, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Configure the Akeneo API credentials in the plugin settings.

Configuration

API Credentials

Navigate to the Akeneo Connector settings page and enter your Akeneo API credentials:

  • Akeneo Host URL
  • Client ID
  • Client Secret
  • Username
  • Password
  • Channel (optional)

Retry Configuration

The connector includes a configurable retry mechanism for API calls:

'retry' => [
    'enabled' => true,
    'max_retries' => 3,
    'delay' => 2,
    'status_codes' => [429, 500, 502, 503, 504],
],

Usage

WP-CLI Commands

The connector provides several WP-CLI commands for importing data:

# Import categories
wp akeneo categories import

# Import attributes
wp akeneo attributes import

# Import attribute options
wp akeneo attribute_options import

# Import product models (variable products)
wp akeneo models import

# Import products
wp akeneo products import

# Run migrations
wp akeneo migrate_hash_column run
wp akeneo migrate_attribute_hash run

Scheduled Imports

You can set up cron jobs to run imports automatically:

# Example cron job to import products every hour
0 * * * * cd /path/to/wordpress && wp akeneo products import --path=/path/to/wordpress

Data Mapping

The connector uses a mapping system to determine how Akeneo attributes should be imported into WooCommerce:

  • global_attribute: Imported as a WooCommerce global attribute (visible to customers)
  • private_global_attribute: Imported as a WooCommerce global attribute (not visible to customers)
  • text_attribute: Imported as a WooCommerce text attribute
  • post_meta: Imported as a product meta field
  • external_media: Imported as external media

Performance Optimization

The connector implements several performance optimizations:

  1. Hash-based Change Detection: Only imports data that has changed since the last import.
  2. Batch Processing: Processes data in batches to reduce memory usage.
  3. API Retry Mechanism: Automatically retries failed API calls with configurable backoff.

Advanced Features

Product Models and Variations

The connector fully supports Akeneo's product models and variants:

  • Product models are imported as WooCommerce variable products
  • Product variants are imported as WooCommerce product variations
  • Attribute axes are properly mapped to WooCommerce variation attributes

Multilingual Support

The connector supports multilingual content through integration with WPML or Polylang:

  • Automatically creates translations for products, categories, and attributes
  • Synchronizes translations between different language versions

Troubleshooting

Logging

The connector logs all import activities and errors to log files located in:

/path/to/wordpress/logs/akeneo_connector-debug.log
/path/to/wordpress/logs/akeneo_connector-error.log

Common Issues

  • API Connection Issues: Verify your Akeneo API credentials and ensure your server can reach the Akeneo instance.
  • Memory Limit Errors: Increase PHP memory limit in your wp-config.php file.
  • Import Timeouts: For large catalogs, consider importing data in smaller batches or increasing PHP execution time.

Contributing

Contributions to the Akeneo Connector are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.

License

The Akeneo Connector for WooCommerce is licensed under the MIT License.

Credits

Developed by Amphibee - Specialists in e-commerce and PIM integration.

amphibee/akeneo-connector 适用场景与选型建议

amphibee/akeneo-connector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 223 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 amphibee/akeneo-connector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 amphibee/akeneo-connector 我们能提供哪些服务?
定制开发 / 二次开发

基于 amphibee/akeneo-connector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-02-20