hyva-themes/magento2-graphql-tokens 问题修复 & 功能扩展

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

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

hyva-themes/magento2-graphql-tokens

最新稳定版本:1.0.4

Composer 安装命令:

composer require hyva-themes/magento2-graphql-tokens

包简介

Adds Customer and Cart tokens to CustomerData sections

README 文档

README

Hyvä Themes

hyva-themes/magento2-graphql-tokens

Supported Magento Versions

This module adds GraphQL tokens to the CustomerData sections to enable GraphQL calls from a Magento template.

Compatible with Magento 2.3.4 and higher.

What does it do?

It adds:

  • signin_token to the customer section
  • cartId to the cart section
  • storeViewCode to the cart section

The CartId is the masked cartId that is needed for guest carts. The storeViewCode is needed to set the store-code on GraphqQl requests.

When logged in, the customer signin_token can be used to get the real cart id.

Installation

  1. Install via composer
    composer config repositories.hyva-themes/magento2-graphql-tokens git git@github.com:hyva-themes/magento2-graphql-tokens.git
    composer require hyva-themes/magento2-graphql-tokens
    
  2. Enable module
    bin/magento setup:upgrade
    

Configuration

No configuration needed.

How does it work?

There are after-plugins that add the tokens to the individual sections.

If a token already exists, it uses the existing one. Otherwise, a fresh token is generated on the fly.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 24
  • Watchers: 15
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04