承接 dpdconnect/magento2-shipping-graphql 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dpdconnect/magento2-shipping-graphql

Composer 安装命令:

composer require dpdconnect/magento2-shipping-graphql

包简介

DPD Connect - Magento2 Shipping GraphQL

README 文档

README

composer require dpdconnect/magento2-shipping-graphql

Description

This extension adds GraphQL support to the dpdconnect/magento2-shipping module.

With this extension you can fetch parcelshops and save a selected parcelshop. The following Query types and Mutations are supported:

Query type: parcelshops

Allows you to search for parcelshops either by postcode/country or a user-specified text.

Query type: selectedParcelshop

Returns the parcelshop saved in a Quote.

Mutation type: setParcelshop

Save a selected parcelshop in a Quote.

Example usage with GraphQL queries

Fetch parcelshops by postcode and country

query getDpdParcelshops($postcode: String, $countryId: String) {
  parcelshops(postcode: $postcode, countryId: $countryId) {
    items {
      parcelshop_id
      company
      street
      houseno
      zipcode
      city
      country
      latitude
      longitude
      opening_hours {
        open_morning
        open_afternoon
        close_morning
        close_afternoon
        weekday
        __typename
      }
      __typename
    }
    total_count
    __typename
  }
}

Save a selected parcelshop

mutation saveParcelshop(
      $parcelshop_d: String!
      $company: String!
      $street: String!
      $houseno: String!
      $zipcode: String!
      $city: String!
      $country: String!
   ){
   setParcelshop(
      parcelshop_id: $parcelshop_id,
      company: $company,
      street: $street,
      houseno: $houseno,
      zipcode: $zipcode,
      city: $city,
      country: $country
   )
}

Fetch a parcelshop already saved in a Quote server sided

query getSelectedParcelshop(
    $cartId: String!
) {
    selectedParcelshop(
        cart_id: $cartId
    ) {
        parcelshop_id
        company
        street
        zipcode
        city
        country
        __typename
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固