Questions tagged «magento2.2»

有关Magento 2.2.x版本的一般问题


5
Magento 2.3.0“服务器的技术问题导致错误。” 上载徽标图像时
我在Ubuntu操作系统上使用Magento 2.3.0和php 7.2版本。一切看起来都正常,但是当我尝试进入Magento后端,内容-设计/配置-标头,并尝试上传徽标图片时,我得到了: A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later. 我已经尝试过更改用户密码,检查index.php是否有任何回显代码,还尝试升级,编译,部署,重新索引,清理缓存,但是什么也没有,我仍然收到此错误。

2
Magento 2使用UiComponent显示时间选择器
我想以Ui组件形式显示Timepicker。我可以使用下面的代码添加时间字段,但无法保存价值。有人可以帮忙吗? <field name="start_time"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="dataType" xsi:type="string">text</item> <item name="label" xsi:type="string" translate="true">Start Time</item> <item name="formElement" xsi:type="string">date</item> <item name="source" xsi:type="string">prmrule</item> <item name="dataScope" xsi:type="string">start_time</item> <item name="options" xsi:type="array"> <item name="controlType" xsi:type="string">select</item> <item name="timeOnlyTitle" xsi:type="string">Select Start Time</item> <item name="showsTime" xsi:type="boolean">true</item> <item name="timeOnly" xsi:type="boolean">true</item> </item> </item> </argument> </field> 我没有得到选择的时间ui_form。我在Magento中默认以UTC格式获取日期。我只想获得在中选择的时间ui_form。

4
如何在magento2中使用自定义Api更新客户地址?
我创建了自定义API以使用customer id或地址ID 更新客户地址。 下面的代码我用来实现它。 [供应商] / [模块] /etc/webapi.xml <route url="/V1/address/createUpdate" method="POST"> <service class="[Vendor]\[Module]\Api\CustomAddressInterface" method="addressUpdate"/> <resources> <resource ref="anonymous"/> </resources> </route> [供应商] / [模块] /Api/CustomAddressInterface.php <?php namespace [Vendor]\[Module]\Api; interface CustomAddressInterface { /** * Returns greeting message to user * * @api * @param string $name Users name. * @return string Greeting message …

1
限制客户在Magento中购买某种产品的最大数量(一定数量)
有没有好的模块可以解决这个问题?还是这是需要编写的自定义事件/观察者? 这是一个非magento网站上的图像,专门显示了我在寻找什么。 Magento 2.2.3 EE 这需要与Magento Commerce b2b模块一起使用。因此,组/公司中的每个人都会受到限制。如果该组中有4个人,但一个人购买了最高金额,则其他3个人将被禁止购买任何商品。这使其逻辑变得越来越复杂和困难。

2
Magento 2表单字段切换类型
我想在magento 2中创建一个切换输入选项,如下所示: 但我不知道这是什么类型的字段,现在我正在使用选择下拉列表,如下所示: $fieldset->addField( 'featured', 'select', [ 'label' => __('Featured'), 'title' => __('Featured'), 'required' => true, 'options' => ['1' => __('Yes'), '0' => __('No')], 'value' => $partner['featured'] ] );


6
如何在Magento 2中更改货币格式?
目前价格显示为$ 2.999,00 我希望产品页面上的语言环境es_MX(西班牙语,墨西哥)的价格显示为$ 2,999.00 ,其他任何货币格式正确的地方。 我已经尝试了stackexchange中的所有解决方案,但没有人能解决。 文件app / code / Jsp / Currency / etc / di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="Magento\Framework\Locale\Format" type="Jsp\Currency\Model\Format"/> </config> 档案app / code / Jsp / Currency / Model / Format.php <?php namespace Jsp\Currency\Model; use Magento\Framework\Locale\Bundle\DataBundle; class Format extends \Magento\Framework\Locale\Format { private static $defaultNumberSet = 'latn'; …
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.