首页 文章

在magento 2中安装扩展程序 - 没有应用程序/代码文件夹

提问于
浏览
0

我已下载付费扩展程序,他们提供的安装步骤如下:1 . 解压缩扩展程序2.在应用程序/代码中上传3.在cmd提示符下转到root并运行:php bin / magento setup:upgrade php bin / magento setup:static-content:deploy php bin / magento cache:flush

第一个问题是我的magento版本没有app / code文件夹,我已经检查了这个链接:

https://magento.stackexchange.com/questions/90913/how-to-install-custom-extension-in-magento2

但那也行不通 . 我下载的扩展程序在解压缩时具有以下内容:

-- Block
-- etc
-- Gateway
-- Model
-- Observer
-- view
-- Changelog.md
-- composer.json
-- README.md
-- registeration.php

我尝试了以下步骤:

1. create a folder in root
2. and then took all content of extension in that folder
3. Then I ran commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush

但它不起作用 .

请让我知道我错过了什么 . 提前致谢 .

1 回答

  • 1

    只需在app文件夹中手动创建代码文件夹并将模块放在那里 . 结构必须是这样的:在你的应用程序/代码文件夹(你已创建)中,你有公司/模块文件夹(来自你复制的模块) .

    之后运行 bin/magento setup:upgrade .

相关问题