shoparize/magento-partner

Shoparize Partner Magento 集成模块

安装: 64

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:magento2-module

1.0.6 2024-06-23 10:22 UTC

This package is auto-updated.

Last update: 2024-09-23 11:00:04 UTC


README

安装需要执行

cd /to/magento/shop/;

# install repositories(need to get access)
composer config repositories.shoparize_product_api composer https://github.com/shoparize/partner-plugin-product-api.git;
composer config repositories.shoparize_magento composer https://github.com/shoparize/magento-partner.git;

# install magento extension
composer require shoparize/magento-partner:"^1.0";

bin/magento module:enable Shparize_Partner;
bin/magento setup:upgrade;
bin/magento setup:di:compile;
bin/magento cache:flush;

安装后,配置页面将可用

img.png

颜色属性字段、尺寸属性需要使用当前颜色、尺寸属性进行设置。如果商店中没有颜色、尺寸属性,它们将在安装模块时自动安装。

img.png

向产品 API 发送请求

请求示例

GET https:///shoparize-partner/products?page=1&limit=3&updated_after=2023-08-13T16:05:53+03:00
Shoparize-Partner-Key: 999999

响应

{
  "items": [
    {
      "id": "1",
      "title": "Joust Duffle Bag",
      "description": "The sporty Joust Duffle Bag can't be beat - not in the gym, not on the luggage carousel, not anywhere. Big enough to haul a basketball or soccer ball and some sneakers with plenty of room to spare, it's ideal for athletes with places to go.\r\n\r\nDual top handles.\r\nAdjustable shoulder strap.\r\nFull-length zipper.\r\nL 29\" x W 13\" x H 11\".\r\n",
      "link": "http:\/\/localhost\/joust-duffle-bag.html",
      "images": [
        "http:\/\/localhost\/media\/catalog\/product\/m\/b\/mb01-blue-0.jpg"
      ],
      "mobile_link": "http:\/\/localhost\/joust-duffle-bag.html",
      "availability": "out_of_stock",
      "price": "34.00",
      "brand": null,
      "gtin": null,
      "condition": "new",
      "currency_code": "USD",
      "shipping_length": null,
      "shipping_width": null,
      "shipping_height": null,
      "shipping_weight": "11.000000",
      "size_unit": null,
      "sale_price": "34.00",
      "colors": [
        "Black"
      ],
      "sizes": null,
      "shipping": {
        "country": "US",
        "service": "Best Way",
        "price": "0.00"
      },
      "weight_unit": "lbs"
    },
    {
      "id": "2",
      "title": "Strive Shoulder Pack",
      "description": "<p>Convenience is next to nothing when your day is crammed with action. So whether you're heading to class, gym, or the unbeaten path, make sure you've got your Strive Shoulder Pack stuffed with all your essentials, and extras as well.<\/p>\r\n<ul>\r\n<li>Zippered main compartment.<\/li>\r\n<li>Front zippered pocket.<\/li>\r\n<li>Side mesh pocket.<\/li>\r\n<li>Cell phone pocket on strap.<\/li>\r\n<li>Adjustable shoulder strap and top carry handle.<\/li>\r\n<\/ul>",
      "link": "http:\/\/localhost\/strive-shoulder-pack.html",
      "images": [
        "http:\/\/localhost\/media\/catalog\/product\/m\/b\/mb04-black-0.jpg",
        "http:\/\/localhost\/media\/catalog\/product\/m\/b\/mb04-black-0_alt1.jpg"
      ],
      "mobile_link": "http:\/\/localhost\/strive-shoulder-pack.html",
      "availability": "in_stock",
      "price": "35.00",
      "brand": "Brand Name",
      "gtin": "123123123",
      "condition": "new",
      "currency_code": "USD",
      "shipping_length": null,
      "shipping_width": null,
      "shipping_height": null,
      "shipping_weight": "5.000000",
      "size_unit": "111111",
      "sale_price": "35.00",
      "colors": [
        "Black",
        "Gray",
        "Multi",
        "Red"
      ],
      "sizes": [
        false
      ],
      "shipping": {
        "country": "US",
        "service": "Best Way",
        "price": "0.00"
      },
      "weight_unit": "lbs"
    }
  ]
}