dmitrykazak / magento2-custom-option-default-value

此扩展允许您为 Magento 2 设置产品自定义选项的默认值

1.0.0 2020-02-02 11:28 UTC

This package is auto-updated.

Last update: 2024-09-11 18:34:42 UTC


README

Magento 2 Custom Option Default Value 扩展用于为产品设置自定义选项的默认值。

安装

通过 Composer 逐步安装 Magento 2 扩展

  1. 定位您的 Magento 2 项目根目录。

  2. 使用 Composer 安装 Magento 2 扩展

composer require dmitrykazak/magento2-custom-option-default-value 
  1. 安装完成后,扩展
# Enable the extension and clear static view files
$ bin/magento module:enable DK_CustomOptionDefaultValue --clear-static-content

# Update the database schema and data
$ bin/magento setup:upgrade

# Recompile your Magento project
$ bin/magento setup:di:compile

# Clean the cache 
$ bin/magento cache:flush

手动(不推荐)

  • 下载所需版本的扩展
  • 解压文件
  • {root}/app/code/DK/CustomOptionDefaultValue 创建文件夹
  • 将此文件夹中的文件复制到相应位置

概览

支持的自定义选项包括

  • 下拉菜单
  • 多选
  • 单选框
  • 复选框

Configuration

Setting Custom Option of Product

Product Page

支持

如果您遇到任何问题或错误,请在 GitHub 上打开一个 问题

链接