问题标签 [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.
magento2 - 自定义网格中的 Magento2 导出按钮 (CSV)
如何在 magento2 的自定义网格中添加 CSV 导出按钮。我创建了一个网格和表格。需要在magento2中添加csv导出功能。
php - .phtml 文件中的 Magento2 媒体路径
我在 magento2 中尝试了很多选项来查找媒体路径 URL
如何在模板中找到媒体路径 URL。
我试过
但它给了我找不到错误类。我已经搜索并找到了在块文件中创建函数的一种解决方案,但是有很多地方我想在我的设计中使用媒体路径
提前致谢。
.htaccess - 未指定输入文件。- Magento 2.0.2/Vagrant/Virtualbox/Homestead
我在安装 Magento 2.0.2 时遇到问题。通过作曲家创建项目,当需要安装 Magento 时,我得到了这个 - 没有指定输入文件。我看到了使用 .htaccess 进行 Godaddy 托管的解决方案,试了一下,仍然出现同样的错误。
magento2 - 在 Magento 2 的管理产品网格中添加新列
我想在 Magento 2 的产品网格中添加一个新列。我di.xml
在模块etc
文件夹中使用以下代码创建了文件:
在Grid
块中,我有以下代码:
有人可以为此指导我。
magento2 - 添加自定义过滤器以在 magento2 中搜索
我是 Magento2 的新手,尝试向搜索模块添加新过滤器时遇到问题。
例如:
我创建了一个名为“文本字段”类型的“标志”的属性,该属性在店面中是不可见的。
我有 3 个产品:
姓名 | 说明 | 旗帜
产品1 | 说明1 | 1
产品2 | 说明2 | 1
产品3 | 说明3 | 0
当我在搜索框中输入“产品”时,默认情况下 Magento2 返回所有产品,因为所有与搜索匹配,我想要的是在搜索中添加一个过滤器,只返回标志 = 1 的产品,所以它会仅返回产品 1 和 2。
我不知道我必须覆盖的确切块或模型是什么。
提前致谢
magento2 - Magento 2.0 Admin Not working
I am using the virtual host on my local machine in WAMP. Successfully installed the Magento 2.0.2 version. My URL is " magento2.com ". magento2.com is working fine on localhost, but magento2.com/admin not working completely, it is only giving the error "Connection Reset".
I also tried with deleting all the cache from Magento directory, clear the browser cache and cookies but no success.
I have checked the log file and there is following message:
Please help to find some solution. It is annoying as it almost ruined my two days, but still no success.
Thanks & Regards Rajnikant
knockout.js - TypeError: this.itemRenderer is undefined Magento 2
minicart.js 文件包含以下代码,
但在我的控制台中显示以下错误,
因此,我认为 magento 迷你购物车无法正常工作。谁能告诉我解决方案。
感谢您的回答。
magento - 应该创建对象 DOMDocument 错误
我最近创建了一个新的 Magento 安装。解压缩包并使用 FTP 将其上传到我的网站。完成安装向导后,除了 css 文件等之外,所有文件都已安装。我必须为这些文件运行 php bin/magento setup:static-content:deploy。
现在一切正常,但无法访问管理页面上的几个菜单项。我收到以下错误页面:
处理您的请求时出错
应该创建对象 DOMDocument。
错误日志记录号:785367817912
我不知道这个错误是什么意思,当我查看错误日志记录号时:785367817912 我看到以下内容:
a:4:{i:0;s:37:"应该创建对象 DOMDocument。";i:1;s:10020:"#0 /home/thomas/domains/thomasvanbeveren.be/public_html/vendor/magento/框架/视图/元素/UiComponent/Config/Reader.php(95): Magento\Framework\View\Element\UiComponent\Config\DomMerger->getDom()
#1 /home/thomas/domains/thomasvanbeveren.be/public_html/供应商/magento/module-ui/Model/Manager.php(261): Magento\Framework\View\Element\UiComponent\Config\Reader->read()
#2 /home/thomas/domains/thomasvanbeveren.be/public_html/供应商/magento/module-ui/Model/Manager.php(169): Magento\Ui\Model\Manager->prepare('adminhtml.cache...')
....etc
谁能帮我这个?将不胜感激。
php - Magento 安装期间的错误
我正在尝试在我的本地主机上安装 Magento 2,但在准备检查期间它给了我以下错误。
我在整个 wamp 中搜索,xdebug.max_nesting_level
但没有找到任何这样的短语。打开我的php.ini
文件。最后一行是这些。
所以我在它下面添加了额外的行。
但是安装仍然给我同样的错误。我应该怎么办?
requirejs - Magento2 覆盖现有的 js 组件
我想在我的主题中覆盖现有的 magento2 JS 组件以进行更多自定义。
Magento_Checkout/js/view/minicart.js
上面的 JS 组件我想覆盖,我想在删除按钮事件上添加更多操作。