graycore / magento2-guest-orders-graphql

一个为访客购物车添加GraphQL订单端点的Magento 2模块。

资助包维护!
graycoreio

安装次数: 7,469

依赖关系: 0

建议者: 0

安全性: 0

星标: 5

关注者: 4

分支: 1

开放问题: 0

类型:magento2-module

v0.1.3 2023-06-14 14:20 UTC

This package is auto-updated.

Last update: 2024-09-14 17:16:19 UTC


README

Packagist Downloads Packagist Version Packagist License Unit Test Integration Test Installation Test

一个为访客购物车添加GraphQL订单端点的Magento 2模块。此模块与官方客户订单端点的API非常相似。

此模块仅适用于 >= Magento 2.4.1。如果您需要小于 Magento 2.4.1 的订单端点,请使用magento2-orders-graphql

安装

composer require graycore/magento2-guest-orders-graphql

用法

访客订单

对于访客购物车,使用graycoreGuestOrders查询,并将购物车ID作为cartId传入

query GetGuestOrders {
  graycoreGuestOrders(cartId: "dsfg67dsfg65sd6fgs8dhffdgs") {
    items {
      id
    }
  }
}

模式

有关查询中可用的类型的文档,请参阅GraphQL模式