问题标签 [magento-2.0]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
205 浏览

php - php_xsl azure extension not working

Im trying to install magento 2 as a web app on the azure platform

My issue is when i do it complains that it needs the php_xsl extension to complete the installation

I have found a few guides on the net on how to enable this by adding a key and value in the app settings and uploading the .dll to a bin folder on the server.

but no matter what i do with this i cant get this extension working to install magento

I have tried moving this folder to above the root and into other folders, adding a line in the user.ini

The dll is for the correct version of php

0 投票
2 回答
436 浏览

magento - 如何在 Magento 2.0 上安装免费主题?

我从 AWS Market place 调用了一个 Magento 2.0 实例,它由 Ubuntu 14-04-3-lts 上的 Bitnami-2-0-2-2-r04 提供支持。

我需要在其中安装一个免费主题,例如时尚商店/电子产品商店。请帮助我如何在 Magento 2.0 中使用管理控制台安装主题。任何帮助将不胜感激。

在我的小谷歌搜索之后,我发现了一些免费主题并下载了它们,并且按照步骤主题 zip 文件已经app并且skins应该替换为服务器上的目录appskins但问题是服务器上没有名为“skins”的目录。

任何帮助将不胜感激。

干杯! 雷布

0 投票
1 回答
3981 浏览

php - 从源代码编译:无法在 magento2 中为超级工艺主题的静态内容部署读取文件中的内容

我已经安装了 magento2 并尝试配置 ubercraft 主题,但是当我尝试运行磁命令来部署静态内容时。它显示新主题的错误,而默认主题它没有显示错误。错误如下。

我正在执行以下命令

C:\xampp\htdocs\Magento>php bin/magento setup:static-content:deploy

0 投票
1 回答
2818 浏览

magento - 如何在 Magento 2 中编辑自定义 CSS 或更少?

我已经安装magento 2.0.2并覆盖了模板,我被困在我css为自己的样式编写我的地方。我如何更改css现有模板的。

0 投票
1 回答
1001 浏览

magento-2.0 - 如何消除此错误?

处理您的请求时出错

请升级您的数据库:"bin/magento setup:upgrade"从 Magento 根目录运行。以下模块已过时:

我的代码是 module.xml

0 投票
1 回答
885 浏览

magento-2.0 - 如何在自定义模块的magento 2中获取订单数组?

我需要自定义模块控制器中的订单数组。怎么得到?

试过这个,但没有奏效:

错误:

“致命错误:第 76 行的 C:\wamp\www\magento_test\app\code\WebHive\SPS\Controller\Index\Index.php 中找不到类 'WebHive\SPS\Controller\Index\Mage'”

所有建议将不胜感激......

0 投票
3 回答
3757 浏览

css - 我的 css 在 magento 2 中不起作用

我已经安装Magento 2.0.2并覆盖了模板,我被困在我为自己的样式编写 css 的地方。如何更改现有模板的 css。

我已经完成了这些步骤

创造_theme.less

并通过使用部署内容

还将前端开发工作流程更改为客户端少编译,我发现styles.css后端包含的文件是哪个源

如果我进行更改,styles.css那么它将同时适用于前端和后端。

现在我想编写自己的 CSS 来应用我自己创建的主题,我该怎么做?

多谢!

0 投票
0 回答
215 浏览

magento - 带有 XML 数据的 Magento2 REST API 在库存上传期间不起作用

我正在构建一个应用程序,它使用 Magento REST API 来交换数据,我正在使用 XML 来传输数据。但是在以 XML 格式发布数据期间,我收到一个错误“需要库存项目字段”。对于库存上传,我使用 PUT 方法和 URL 来访问 API 是这样的。

http://myhost.com/Individual/XXX/magento2/index.php/rest/V1/products/Stock/stockItems/2

我发送的 XML 数据如下

请建议我在哪里犯错。

谢谢并恭祝安康

乌特帕尔梅蒂

0 投票
2 回答
97 浏览

magento - 全新安装 Magento 2.0.2 后显示问题

安装 Magento 2.0.2 后,我在前端和后端的显示都遇到了一些问题。这是全新安装。

我看不到任何错误代码。我已经查看并尝试使用以前帖子中类似问题的信息,但没有人使用 Magento 2.0.2,我无法弄清楚如何解决这些问题。我认为这可能是一个 apache 重写问题,但也许有人可能对可能导致显示问题的原因有更深入的了解。

我在下面放了几个屏幕截图,非常感谢任何帮助。

前端

后端

0 投票
2 回答
814 浏览

magento - Magento 2.0 覆盖核心 CofigurableProduct 模块块

我想更改定价计算,为此我尝试通过首选项覆盖可配置块,但它不起作用

这是我的 di.xml

可配置的.php: