gokarla/shopware 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gokarla/shopware

Composer 安装命令:

composer require gokarla/shopware

包简介

Automatically transmit orders from your shop to Karla, providing precise and timely updates to your customers and improving the post-purchase experience.

README 文档

README

ci License: Apache-2.0 PHP Version Shopware Packagist

Enhance your post-purchase customer experience in Shopware with GoKarla - automated order tracking and delivery updates for your customers.

Overview

The Karla Delivery extension automatically synchronizes your Shopware orders and shipments with GoKarla, enabling you to provide your customers with precise, timely delivery updates and improve satisfaction after purchase.

Features

Core Capabilities

  • Automatic Order Synchronization - Orders are automatically sent to GoKarla when placed or updated
  • Shipment Tracking Integration - Delivery tracking codes are synchronized in real-time
  • Customer Segmentation - Leverage order and customer tags for targeted communication
  • Multi-Channel Support - Map different sales channels to specific GoKarla shops

Flexible Configuration

  • Configurable Event Triggers - Choose which order and delivery statuses trigger synchronization
  • Line Item Type Mapping - Support for products, promotions, and custom line item types (e.g., deposits)
  • Custom API Endpoint - Use production or custom GoKarla API endpoints
  • Detailed Logging - Built-in logging for troubleshooting and monitoring

Requirements

  • Shopware 6 - Compatible with Shopware 6.x
  • GoKarla Account - Sign up at portal.gokarla.io
  • API Credentials - Shop slug and API key from your GoKarla account. See Authentication.

Installation

Option 1: Via Shopware Admin Panel (Recommended)

  1. Download the latest KarlaDelivery.zip from GitHub Releases
  2. In Shopware admin, navigate to ExtensionsMy Extensions
  3. Click Upload extension and select the downloaded ZIP file
  4. Click Install and then Activate
  5. Configure your API credentials in the extension settings

For detailed instructions, see Shopware Integration Documentation.

Option 2: Via Composer

composer require gokarla/shopware
bin/console plugin:refresh
bin/console plugin:install --activate KarlaDelivery
bin/console cache:clear

Option 3: Manual Installation via Console

  1. Download and extract KarlaDelivery.zip to <shopware-root>/custom/plugins/
  2. Run the following commands:
bin/console plugin:refresh
bin/console plugin:install --activate KarlaDelivery
bin/console cache:clear

Configuration

After installation, configure the extension:

  1. Go to ExtensionsMy ExtensionsKarla DeliveryConfigure
  2. Enter your Shop Slug and API Key from your GoKarla account
  3. Configure which order and delivery statuses should trigger synchronization
  4. (Optional) Set up sales channel mapping for multi-shop setups
  5. Save the configuration

Recommended Settings:

  • Order Statuses: Enable "In Progress" and "Completed"
  • Delivery Statuses: Enable "Shipped" and "Shipped Partially"

Support

Contributing

We welcome contributions! This is an open-source project under the Apache-2.0 License.

Quality Standards:

  • All code must pass make check-all (linting, static analysis, and tests)
  • Follow PSR-12 coding standards
  • Add tests for new features
  • Update documentation as needed

Development Setup

Install dependencies:

composer install

Code Quality

This project follows PSR-12 coding standards and uses modern PHP tooling for quality assurance.

Available Commands:

# Check code style with PHP-CS-Fixer
make lint

# Auto-fix code style issues
make format

# Run static analysis with PHPStan
make analyse

# Run tests with PHPUnit
make test

# Generate code coverage report
make coverage

# Run all quality checks
make check-all

Tooling:

  • PHP-CS-Fixer - Fast, modern code formatter
  • PHPStan - Static analysis to catch bugs before runtime
  • PHPUnit - Comprehensive test suite
  • EditorConfig - Consistent formatting across editors

Code Coverage

To generate code coverage reports locally, you need Xdebug installed:

macOS (Homebrew):

# Install with sudo (Homebrew Cellar requires elevated permissions)
sudo pecl install xdebug

Verify installation:

php -m | grep xdebug

Alternative if PECL fails - compile from source:

# Download and compile xdebug
git clone https://github.com/xdebug/xdebug.git
cd xdebug
phpize
./configure
make
sudo make install

# Enable in php.ini
echo "zend_extension=xdebug.so" | sudo tee -a $(php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||")

Linux (Ubuntu/Debian):

sudo apt install php8.3-xdebug

Docker/Dockware:

# Xdebug is pre-installed in Dockware containers

After installing Xdebug, run:

make coverage
# Open coverage/html/index.html in your browser

Coverage reports are automatically generated in CI and uploaded to Codecov.

Local Development with Dockware

Start a local Shopware instance:

make dockware-start
make dockware-attach

Access the development shop:

For detailed development guidelines, see CLAUDE.md.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

gokarla/shopware 适用场景与选型建议

gokarla/shopware 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 759 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 10 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 gokarla/shopware 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-10-14