fostercommerce/variant-manager
Composer 安装命令:
composer require fostercommerce/variant-manager
包简介
A plugin for managing product variants.
关键字:
README 文档
README
Variant Manager
A Craft CMS plugin that imports and exports Craft Commerce product variants from CSV files.
What it does
- Imports a CSV to create or update a Craft Commerce product and its variants.
- Bulk-imports many products at once from a zip of CSVs, each file becoming its own product.
- Exports a product to CSV from the product edit page, or many products at once from the Variants element index.
- Adds a Variant Attributes field that stores option name and value pairs (Color, Size, Material) on each variant for filtering on the storefront.
- Logs each import and export, with configurable retention, in a dashboard activity feed.
Requirements
- Craft CMS
^5.0 - Craft Commerce
^5.0 - PHP
^8.2
Install
composer require fostercommerce/variant-manager ./craft plugin/install variant-manager
See docs/installation.md for the full installation and configuration guide.
Importing
Upload a CSV (or a zip of CSVs) from Variant Manager -> Dashboard. The CSV's filename determines the product: a new filename creates a new product, an existing product title updates that product. Each row becomes one variant. Columns map to product fields, variant fields, per-site Commerce fields, inventory levels, and variant attributes.
See docs/user-guide/importing.md and docs/user-guide/csv-format.md.
Exporting
Two ways to export: from a single product's edit page (sidebar Export Product button), or from the Variants element index using the Export Variant Data action on a multi-select. A single product downloads as one CSV; multiple products download as a zip. Exported CSVs are shaped so they can be reimported without edits to the column headers.
See docs/user-guide/exporting.md.
Variant Attributes field
The plugin ships a Variant Attributes field type that you add to each product type's variant field layout. The field stores the option-name and option-value pairs from your CSV (Color: Red, Size: Small) as JSON on the variant, and exposes them to Twig for variant selectors and faceted filtering.
See docs/reference/field-type.md for storage and Twig usage.
Permissions
In addition to accessPlugin-variant-manager:
variant-manager:import, upload CSVs and create or update products and variants.variant-manager:export, export products from the product edit page or the variants index.variant-manager:manage, clear the activity log and manage plugin data.
See docs/reference/permissions.md.
License
Proprietary.
fostercommerce/variant-manager 适用场景与选型建议
fostercommerce/variant-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.75k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ecommerce」 「plugin」 「Craft」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fostercommerce/variant-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fostercommerce/variant-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fostercommerce/variant-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
Nevogate Payment Gateway SDK
GraphQL authentication for your headless Craft CMS applications.
Supercharged text field validation.
Dealing with payments through the Egyptian payment gateway PayMob
统计信息
- 总下载量: 7.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2024-02-21
