eggate / chalhoub-shopfinder

Shopfinder模块允许您将商店添加到您的magento2店铺

1.0.1 2023-01-19 12:05 UTC

This package is auto-updated.

Last update: 2024-09-19 16:25:23 UTC


README

Chalhoub M2开放职位的任务。

安装

使用composer安装扩展

  composer require eggate/chalhoub-shopfinder

运行magento安装命令

  bin/magento setup:install
  bin/magento setup:di:compile
  bin/magento setup:static-content:deploy --area adminhtml
  bin/magento cache:flush

功能

  • 我们需要您为我们准备一个可以使用composer安装的模块。
  • 我们应该能在内容部分看到“Shopfinder”菜单,点击Shopfinder链接时,应列出所有已添加的商店。还应提供筛选选项。
  • 我们应该能够添加/编辑新的商店
  • 我们有很多字段。对于这个场景,您只需要覆盖以下字段
    • 商店名称 - 商店名称,字符串
    • 标识符 - 商店的唯一标识符,字符串
    • 国家 - 应由Magento中的国家列表填充
    • 图片 - 用户应能够上传图片
    • (可选) 经度/纬度,字符串

REST API参考

获取所有商店

  GET /V1/shopfinder

通过商店ID获取商店

  GET /V1/shopfinder/${shopId}

创建新商店或更新现有商店(如果存在shop_id)

  POST /V1/shopfinder
  DELETE /V1/shopfinder/${shopId}