saleslayer/magento-enterprise-plugin

Adobe Commerce扩展用于Sales Layer PIM

2.7.2 2024-09-03 10:12 UTC

This package is auto-updated.

Last update: 2024-09-04 06:37:18 UTC


README

Magento Enterprise plugin

Sales Layer Adobe Commerce扩展

PHP Version Magento Version GitHub release

这是Sales Layer官方为Adobe Commerce(前身为Magento Enterprise)提供的插件。

描述

此插件允许您轻松地将Sales Layer目录信息与您的Adobe Commerce商店同步。您可以在我们的网站上找到更详细的文档。

重要注意事项

请查看安装的重要注意事项(在某些情况下,可能需要Sales Layer账户才能访问文档)

要求

  • 安装cUrl扩展;为了从Sales Layer调用和获取信息。
  • 在Sales Layer Magento连接器中定义字段关系
    • 大多数Magento字段已在每个部分中定义,产品或变体的额外字段为“商店”->“属性”->“产品”,并且必须在Magento中创建才能同步。
    • 在同步具有变体的产品时,将同步的Magento属性标记为“用于变体”,然后,产品和变体的属性值将合并并分配给父产品。变体必须为每个属性只有一个值。
  • 在分类、产品和变体内部将有属性;Sales Layer产品识别、Sales Layer产品公司识别和Sales Layer格式识别,不要修改或删除这些属性及其值,否则,产品将在下一次同步时再次作为新产品创建。
  • 在连接器配置内部,您可以在不同的选项卡中设置同步前的不同值,例如
    • 自动同步和首选的小时。
    • 将更新信息的地方。
    • 设置传入分类分支的根分类。
    • 避免库存更新。(只有在新项目创建时才会更新库存)
    • 可变属性。

如何开始

1. 模块包安装过程

安装此扩展的推荐方法是使用Composer

警告。如果您之前已手动在根目录“app/code”中安装了插件,请先卸载它。然后通过Composer自动安装插件。如果您同时尝试两种方式安装,在步骤1.2中,Magento将返回错误。

1.1 通过Composer。在您的Magento根目录中,执行以下命令

composer require saleslayer/magento-enterprise-plugin

有关更多信息,请参阅Adobe Commerce上的管理扩展

信息如果您在根目录“app/code”中安装了此插件的早期版本,请在继续使用Composer安装插件之前删除插件完整文件夹。

执行并安装后,插件将位于您的Magento安装根路径中,位于文件夹“vendor/saleslayer/magento-community-plugin/”内。

1.1.1 Composer命令示例

安装主分支的最新有效版本

composer require saleslayer/magento-enterprise-plugin

安装具有2.7.*标签的最新有效版本(版本号可以更改为您想要包含Composer的任何标签号)

composer require saleslayer/magento-enterprise-plugin "2.7.*" 

将安装feature-295分支(分支名称可以更改为您想要包含Composer的任何分支名称)

composer require saleslayer/magento-enterprise-plugin:dev-feature_295

安装最新开发版本

composer require saleslayer/magento-enterprise-plugin:2.7.x-dev

1.1.2 Composer要求

遵循版本指南,检查插件版本以确定安装插件所需的PHP和Magento版本。

如果未满足要求,Composer将给出错误。

信息 这只会发生在您的Magento安装不满足正在安装的特定分支或标签版本的要求,或者默认情况下,所有主分支版本均不满足。

1.2 从Magento根目录执行以下命令

php bin/magento setup:upgrade
php bin/magento setup:di:compile (if there's an error with 'var/di/' folder just delete it and execute this command again)
php bin/magento setup:static-content:deploy
php bin/magento cache:clean

1.3 执行命令后,将安装Sales Layer模块

2. 创建Sales Layer Magento连接器并映射字段

2.1 插件需要连接器ID代码和私钥,您可以在Sales Layer的连接器详情中找到它们。

3. 在Magento中添加连接器凭证

3.1 前往Sales Layer -> 导入 -> 添加连接器,并添加连接器ID和密钥。

3.2 最后,在Sales Layer -> 导入 -> 您创建的连接器,点击“同步连接器”以自动导入类别、产品及其变体。

版本指南

分支2.7.x版本推荐的配置

警告。Adobe经常发布新的Magento Open Source版本,修复错误和/或添加新功能。其中一些版本可能与本插件冲突。我们强烈建议您根据指导表中的推荐配置进行设置,以确保此扩展正常运行。

注意。有关正确环境选择,请参阅Magento系统要求