appstract-software / magento-adapter

该模块为 Magento 2 提供了缺失的功能

安装: 172

依赖: 0

建议者: 0

安全: 0

星星: 1

观察者: 2

分支: 1

开放问题: 5

类型:magento2-module

1.2.89 2022-07-01 07:53 UTC

README

Version

此模块为 Magento 2 提供缺失的功能。

入门

Magento 2 文档

$ composer require appstract-software/magento-adapter
$ bin/magento module:enable Appstractsoftware_MagentoAdapter   # enable the module
$ bin/magento setup:upgrade                                    # upgrade Magento database schemas

特性

自定义 REST API 端点

产品 REST API

分类过滤器 REST API

心愿单 REST API

订单 REST API

支付 REST API

扩展属性

产品价格

名称: product_price

类: \Magento\Catalog\Api\Data\ProductInterface

示例端点

  • /rest/V1/products/:sku
  • /rest/V1/products?searchCriteria[...]

示例响应

  • 无特殊价格的产品
"extension_attributes": {
    "product_price": {
        "price": 60,
        "currency_price": "60,00 zł",
        "currency_symbol": ""
    }
}
  • 有特殊价格的产品
"extension_attributes": {
    "product_price": {
        "price": 32.53,
        "special_price": 32,
        "currency_price": "32,53 zł",
        "currency_special_price": "32,00 zł",
        "currency_symbol": ""
    },
}