定制 helloagain/shopware6 二次开发

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

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

helloagain/shopware6

最新稳定版本:1.3.4

Composer 安装命令:

composer require helloagain/shopware6

包简介

HelloAgain Connector plugin Shopware 6

关键字:

README 文档

README

Shopware 6 Plugin for hello again

Release

./package.sh

Shopware Versions

  • 6.6 is on branch main
  • 6.5 is on branch shopware-6.5
  • 6.4 is on branch shopware-6.4 (deprecated)

Installation

Cron Job

bin/console helloagain:data-export

Configuration

Oauth2 Authorize URI: BASEURL/hla/oauth2/authorize
Oauth2 Exchange Token URI: BASEURL/hla/oauth2/token
Webview Init URI: BASEURL/hla/session/init?helloagain_token={{externalToken}}
Webview with Redirect: BASEURL/hla/session/init?helloagain_token={{externalToken}}&redirect_uri={{redirectUrl}}

Headless Mode

This plugin can also be used in a headless Shopware environment, by utilising the following APIs via the Headleass Frontend.

Documentation for Zebra Fashion: https://docs.google.com/document/d/17voZ_7pbhnsC-oCaRW0s6fKx5PwrdjrTg4OCVzYCjoQ/edit?tab=t.0

Authorization Code Endpoint

curl --location '<BASE_SHOP_URL>/store-api/account/login' \
--header 'sw-access-key: <SW-ACCESS-KEY>' \
--form 'username="<USERNAME>"' \
--form 'password="<PASSWORD>"'
  • Afterwards an Authorizaction Code can be acquired via:
curl --location '<BASE_SHOP_URL>/store-api/v1/authorize' \
--header 'sw-access-key: <SW-ACCESS-KEY>' \
--header 'sw-context-token: <SW-CONTEXT-TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
    "scope": "email first_name last_name"
}'
  • The headless frontend has to redirect with that access token according to the OAuth 2.0 Authorization Code Flow:
HTTP/2.0 302

Header
location: <REDIRECT_URI>?state=<STATE>&code=<AUTHORIZATION_CODE>

Token Endpoint

curl --location '>BASE_SHOP_URL>/store-api/v1/token' \
--header 'Content-Type: application/json' \
--data '{
    "code": "<AUTHORIZATION_CODE>",
    "client_id": "<CLIENT_ID>",
    "client_secret": "<CLIENT_SECRET>",
    "grant_type": "authorization_code"
}'

Get User By Token Endpoint

curl -X POST -d '{"helloagain_token": "<hello-again-token>"}' "<BASE_SHOP_URL>/store-api/v1/get-user-by-token" -H "Content-Type: application/json"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-31