custobar / custobar_m2_custoconnector
Custobar Magento 连接器
Requires
- magento/framework: >=100.0.0
This package is not auto-updated.
Last update: 2024-09-18 02:06:30 UTC
README
CustoConnector 用于将 Magento 安装的使用统计信息发送到 Custobar API
发布信息
CustoConnector for M2
系统要求
- PHP 8.1
- Magento 2.4.4 或更高版本
注意:模块要求正确配置并运行 Magento cron
安装
将 repositories
对象添加到 composer.json
"repositories": [
{
"type": "git",
"url": "https://github.com/Custobar/magento2-plugin"
}
]
添加要求 custobar/custobar_m2_custoconnector
{
"require": {
"custobar/custobar_m2_custoconnector": "dev-master"
}
}
运行 php bin/magento module:enable Custobar_CustoConnector
和 php bin/magento setup:upgrade
安装后
转到 商店 / 设置 / 配置 / Custobar / CustoConnector / 配置
来设置模块。
输入提供的 客户端标识符
和 API 密钥
。
至少选择一个 允许发送数据的网站
。
您还可以添加 Custobar 跟踪脚本
,该脚本可以在 https://clientidentifier.custobar.com/tracking-script/
生成。
复制并粘贴以下行之外的代码
// remove these cstbrConfig.productId = 'place_product_id_here'; cstbrConfig.customerId = 'place_customer_id_here';
记得在更改值后刷新 Magento 的缓存。
转到 系统 / Custobar / Custobar 状态
来查看状态或启动初始计划。
由于 Magento 前端从 pub 文件夹运行,因此如果获取的媒体 URL 包含 "pub" 并且无法访问,则需要更新设置
-
在
商店 / 设置 / 配置 / 一般 / 网络 / 基础 URL
将
用户媒体文件的基础 URL
更改为{{unsecure_base_url}}media/
将
用户媒体文件的安全基础 URL
更改为{{secure_base_url}}media/
更新通知
3.0.0:
- 已停止支持当前不受支持的 Magento 版本,因此截至 2023 年 7 月,最旧的受支持版本是 2.4.4
- 已删除 InstallSchema 和 UpgradeSchema 脚本,并替换为新的声明性模式定义
- 更新了 cURL 客户端(用于 Custobar API 调用)的构建,以支持 2.4.6,但也支持 2.4.4 和 2.4.5
- 使测试定义保持最新,以便可以在较新的 Magento 测试框架中运行
- 修复了与代码嗅探器相关的多个警告,以确保捕获实际错误更加容易
- 修复了订单放置时间未以正确值导出到 Custobar API 的问题
- 修复了由于 row_id 和 entity_id 的差异,在 Commerce 版本中 sku 解析不总是工作的问题
2.1.1:
- 增加了对 Magento 2.4.5 & PHP 8.1 的兼容性
2.1.0:
- 修复了即使实体仅限于特定网站,也仍然为所有网站安排导出的问题
- 添加了在管理员中指定按商店视图的字段映射的可能性
- 添加了在字段映射中自动添加域的可能性
- 修复了应用/过期特殊价格不会自动导致产品安排导出的问题
2.0.0:
- 模块重构以更好地遵循 Magento 标准,并提高代码质量
- 添加了日志的管理员视图
- 删除了跟踪模型的管理员配置,并替换为更直观的解决方案
1.1.1:
- 修复了 null 产品问题
- 删除由自身不可见的产品的URL,因为magento为它们提供了不友好的URL
1.1.0:
-
将选择/下拉属性标签正确映射到Custobar
示例
manufacturer>brand
-
为Magento\Catalog\Model\Product>products添加新字段
custobar_child_ids>mage_child_ids 和 custobar_parent_ids>mage_parent_ids
更新跟踪模型(请记住保留您的自定义修改)
Magento\Catalog\Model\Product>products: name>title; sku>external_id; custobar_minimal_price>minimal_price; custobar_price>price; type_id>mage_type; configurable_min_price>my_configurable_min_price; custobar_attribute_set_name>type; custobar_category>category; custobar_category_id>category_id; custobar_image>image; custobar_product_url>url; custobar_special_price>sale_price; description>description; custobar_language>language; custobar_store_id>store_id; custobar_child_ids>mage_child_ids; custobar_parent_ids>mage_parent_ids, Magento\Customer\Model\Customer>customers: firstname>first_name; lastname>last_name; id>external_id; email>email; custobar_telephone>phone_number; custobar_street>street_address; custobar_city>city; custobar_postcode>zip_code; custobar_country_id>country; custobar_created_at>date_joined; store_id>store_id, Magento\Customer\Model\Address>*Magento\Customer\Model\Customer: customer_id>id, Magento\Sales\Model\Order>sales: custobar_state>sale_state; increment_id>sale_external_id; customer_id>sale_customer_id; custobar_created_at>sale_date; customer_email>sale_email; store_id>sale_shop_id; custobar_discount>sale_discount; custobar_grand_total>sale_total; custobar_payment_method>sale_payment_method; custobar_order_items>magento__items, Magento\Newsletter\Model\Subscriber>events: subscriber_email>email; customer_id>customer_id; custobar_status>type; custobar_date>date; store_id>store_id