vandersonramos/magento2-remove-add-to-cart

此模块用于移除访客的“添加到购物车”按钮。

dev-master 2019-04-17 15:54 UTC

This package is auto-updated.

Last update: 2024-09-25 22:33:44 UTC


README

概述

Magento 2 模块,用于禁用在产品和分类页面为访客显示“添加到购物车”按钮。

安装详情

  1. 运行 composer require vandersonramos/magento2-remove-add-to-cart:dev-master
  2. 运行 php bin/magento setup:upgrade
  3. 运行 php bin/magento cache:clean

配置详情

  1. 进入 Magento 管理后台
  2. Stores > Configuration > Catalog > Catalog 中找到选项
  3. Storfront 选项卡下,您将找到 Remove add to cart button for guests 选项
  4. 启用此选项以激活此模块

卸载

  1. 运行 composer remove vandersonramos/magento2-remove-add-to-cart