雪地狗/module-bullet-points

模块用于收集产品属性并以项目符号形式显示

1.2.0 2020-10-22 12:06 UTC

This package is auto-updated.

Last update: 2024-09-22 20:36:39 UTC


README

收集并显示属性为项目符号的扩展

1. 安装

  • composer require snowdog/module-bullet-points
  • bin/magento module:enable Snowdog_BulletPoints
  • bin/magento setup:upgrade

2. 使用

该扩展提供了一个 CLI 命令,允许传递分类 ID、属性 ID 和产品 ID(这是可选的),并将为传递的分类 ID 分配的产品生成一个 HTML 表格,表格中包含如下配对:属性标签 | 属性值。如果也传递了产品 ID 作为参数,则如果这些产品分配给传递的分类 ID,将为这些产品生成项目符号。生成的 HTML 格式表格将被设置为每个产品的 selling_features_bullets 属性,可以在例如产品查看中使用。此模块将基于属性 ID 排序生成 HTML 表格,并为 dt 标签添加 <attribute_code>_label 类,为 dd 标签添加 <attribute_code>_value 类。

$ bin/magento snowdog:collect:bullet-points

Usage:
  snowdog:collect:bullet-points <category-ids> <attribute-ids> [<skus>]

Arguments:
  category-ids          Category IDs
  attribute-ids         Sorted Product Attribute IDs
  skus                  Comma separated SKU list