Questions tagged «magento2.3»

表示与Magento CE 2.3.x和EE 2.3.x相关的问题


6
无效的模板文件-从2.2.6升级到2.2.7或2.3的问题
我已经将2.2.6版本升级到2.2.7版本,但是在我的网站上显示以下错误。 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'C:/xampp2/htdocs/magento2/demo1/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js' Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'C:/xampp2/htdocs/magento2/demo1/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js' #0 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\View\Element\Template.php(300): Magento\Framework\View\Element\Template->fetchView('C:/xampp2/htdoc...') #1 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\View\Element\AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #2 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\View\Result\Page.php(248): Magento\Framework\View\Element\AbstractBlock->toHtml() #3 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\View\Result\Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor)) #4 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\Interception\Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor)) #5 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\Interception\Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array) #6 C:\xampp2\htdocs\magento2\demo1\vendor\magento\framework\Interception\Interceptor.php(153): …





2
Magento 2:应用自定义产品折扣后,分层导航价格过滤器不起作用
我正在开发产品折扣模块。我是通过插件和观察者完成的。在产品页面和列表页面上都可以正常工作。但是价格过滤器无法根据更新的产品价格运行。 这是我用来自定义价格的代码。 供应商名称/模块名称/etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Catalog\Pricing\Price\FinalPrice"> <plugin name="custom_discount_catalog_pricing_price_finalprice" type="VendorName\ModuleName\Plugin\FinalPrice" /> </type> </config> VendorName / ModuleName / etc / events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <event name='catalog_product_get_final_price'> <observer name='customdiscount_finalprice' instance='VendorName\ModuleName\Observer\ProcessFinalPrice'/> </event> </config> VendorName / ModuleName / Observer / ProcessFinalPrice.php <?php namespace VendorName\ModuleName\Observer; use Magento\Framework\Event\ObserverInterface; class ProcessFinalPrice implements ObserverInterface { …

3
Magento2.1 ui网格,删除或清除过滤器问题(删除过滤器后,结果行适用于整个集合)
我在magento 2.1.0中创建了ui网格,并在从ui网格中删除过滤器或清除所有过滤器时遇到问题。我的过滤结果占据了整个网格,这意味着移除过滤器后,在整个网格中重复了同一行。 我弄清楚了为什么会出现此问题,但无法解决此问题。 由于mui / index / render获取请求在删除过滤器或清除所有过滤器时未触发,因此出现问题。 实际上,当应用了2个或更多过滤器时,它起作用了,我删除了它们,但在最后一次应用过滤器时却没有。

1
magento 2.3中不推荐使用\ Magento \ Framework \ Registry,如何使用注册表创建实例?
/** * Registry model. Used to manage values in registry * * Registry usage as a shared service introduces temporal, hard to detect coupling into system. * It's usage should be avoid. Use service classes or data providers instead. * * @api * @deprecated * @since 100.0.2 */ https://www.mageplaza.com/devdocs/magento-2-registry-register.html 谁可以给我演示使用服务类或数据提供者的演示。 …

3
Magento 2.2.X> 2.3.0升级问题
今天,magento 2.3.0正式发布。我尝试从2.2.6> 2.3.0升级,但失败了。尝试从2.2.6> 2.2.7升级,并且没有任何问题。再次尝试2.2.7> 2.3.0,并遇到了尝试从2.2.6> 2.3.0升级时遇到的相同错误。 Web安装向导出现错误-系统升级 命令“更新”失败:您正在启用xdebug的情况下运行composer。这对运行时性能有重大影响。请参阅 https://getcomposer.org/xdebug。使用软件包信息加载composer存储库更新依赖关系(包括require-dev)您的要求无法解决为一组可安装的软件包。 问题1-magento /产品社区版本2.3.0要求magento / magento2-base 2.3.0-> magento / magento2-base [2.3.0]可满足要求。-结论:请勿安装symfony / console v2.8.38-结论:请勿安装symfony / console v4.1.4 |安装symfony / console v2.8.38-结论:请勿安装symfony / console v4.1.5 |安装symfony / console v2.8.38-结论:请勿安装symfony / console v4.1.6 |安装symfony / console v2.8.38-结论:请勿安装symfony / console v4.1.7 |安装symfony / console v2.8.38-安装请求对于magento / …

1
Magento 2.3删除库存源
我已经安装好了Magento 2.3。尝试了之后multi stock options,我注意到在“管理源”页面下,我可以创建一个新源,但不能删除它。该页面上似乎缺少操作下拉菜单(Magento错误?)。有人知道如何解决此问题吗?我需要删除一个测试。 菜单路径: Stores > Inventory > Sources

1
数据迁移> Eav步骤错误
数据迁移> EAV步骤 SQLSTATE [23000]:违反完整性约束:1062键“ EAV_ATTRIBUTE_SET_ENTITY_TYPE_ID_ATTRIBUTE_SET_NAME”的条目“ 1-Migration_Default”重复 我在这里找到了解决方案,但对我不起作用,我也删除了eav_attribute_set表中设置的重复属性 但是在运行命令之后,就会产生新的错误 未定义的偏移量:第292行的vendor / magento / data-migration-tool / src / Migration / Step / Eav / Data.php中的4 提前致谢!!

4
无法通过作曲家从2.2.6升级到2.3
我有一个干净的Magento 2.2.6,其中包含使用Composer安装的示例数据。 我正在尝试将其更新为Magento 2.3,因此请按照Magento团队在此处概述的步骤进行操作。 运行后,composer update我得到以下信息: Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - magento/module-wishlist-sample-data 100.2.0 requires magento/module-wishlist 101.0.* -> satisfiable by magento/module-wishlist[101.0.4, 101.0.0, 101.0.1, 101.0.2, 101.0.3, 101.0.5]. - magento/module-wishlist-sample-data 100.2.0 requires magento/module-wishlist …


1
http动词接口的目的
在Magento 2.3中,所有http动词都有一些接口 Magento\Framework\App\Action\HttpPostActionInterface Magento\Framework\App\Action\HttpGetActionInterface, ... 所有的人都是空的并且执行Magento\Framework\App\ActionInterface。 我还发现它们全部都映射app/etc/di.xml到的参数中,Magento\Framework\App\Request\HttpMethodMap并且许多控制器都实现了这些接口。 但并非所有控制器。 这就是我能找到的所有信息。 他们的目的是什么?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.