torqit / store-syndicator-bundle
此包的最新版本(v0.1.11)没有可用的许可信息。
v0.1.11
2023-07-18 11:58 UTC
Requires
- php: ~8.0.0 || ~8.1.0 || ~8.2.0
- ext-fileinfo: *
- ext-json: *
- pimcore/data-hub: ^1.5
- pimcore/pimcore: ^10.5
- shopify/shopify-api: ^4.2
Requires (Dev)
- codeception/codeception: ^4.1.12 || ^5.0.3
- codeception/module-asserts: ^2
- codeception/module-symfony: ^1.6.0 || ^3.1.0
- codeception/phpunit-wrapper: ^9
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^9.3
- dev-main
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-feat/pimcore-11-upgrade
- dev-feat/choose-local-from-localized-fields
- dev-feat/inventory-quantities
- dev-bugfix/remove-properties-command
- dev-feat/better-error-outputs
- dev-feat/better-error-catching
- dev-feat/linking-command
- dev-bugfix/GR-deployment-fixes
- dev-bugfix/create-variants
- dev-feat/linking-functionality
- dev-feat/creds-object
- dev-feat/comit-log-file
- dev-feature/local-relation-fields
- dev-feat/variant-metafields
- dev-feat/better-attribute-selection
- dev-feat/image-gallery
- dev-feat/Image-attributes
- dev-feature/refactors-one
- dev-feat/basic-execution-script
This package is auto-updated.
Last update: 2024-09-10 12:58:30 UTC
README
将 Pimcore 对象导出到电子商务店面,如 Shopify。
目前,此包仅设计用于与 Shopify 店面协同工作,但未来可能扩展以支持其他电子商务框架。
安装
- 在项目终端中运行
composer require torqit/store-syndicator-bundle
。 - 在相同终端中,运行
bin/console pimcore:bundle:enable StoreSyndicatorBundle
。 - 然后运行
bin/console pimcore:bundle:install StoreSyndicatorBundle
。
设置导出
- 创建一个新的“TorqStoreExporterShopifyCredentials”数据对象,包含您的 Shopify 店面凭证。
- 在 Pimcore Datahub 中创建一个新的“Store Exporter”条目。
- 在创建的 Store Exporter 中,在 API 访问选项卡下,拖入步骤 1 中创建的凭证对象。
- 在“选择产品”选项卡下
- 在“BaseClass”下选择您将导出的数据对象类
- 在“Product Query Qhere Clause”中,您可以编写导出 Pimcore 对象列表的 SQL WHERE 子句。一些示例包括
o_path LIKE "your products folder path"
用于基于路径的导出fieldName = value
用于基于对象字段的导出
- 在“映射属性”选项卡中,填写表格的适当详细信息
- “本地字段”列指的是导出 Pimcore 数据对象类中的字段
- “字段类型”列指的是商店字段类型
- “远程字段”列指的是商店中的字段
- 对于任何应该在所有导出变体中唯一的字段,请勾选“映射”复选框
运行导出
在终端中运行命令 bin/console torq:push-to-shopify "your-store-name"
。如果您预计此导出将需要超过几分钟的时间(或您导出超过几千个变体),请使用以下方法将命令包装在 nohup
中,以确保在您的终端会话意外结束时进程继续运行:nohup bin/console torq:push-to-shopify "your-store-name" &
。
查看结果
在 Store Exporter 数据hub 配置的“执行”选项卡中包含一个日志表。该表将显示在导出产品时通过 API 调用返回的任何文件或响应,以及 Shopify 返回的任何错误。