magento2

Magento 2 event/observer for create shipment

半城伤御伤魂 提交于 2021-02-19 06:05:32
问题 I'm trying to send an SMS notification to the client after creating a shipment. In M1 I can do that with this event: <sales_order_shipment_save_after> But in Magento 2 there is no event triggering after creating the shipment. Can anyone advise me, please? 回答1: you can use sales_order_shipment_save_after event for this you need to create etc/events.xml file to define your event <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=

Magento 2 event/observer for create shipment

自古美人都是妖i 提交于 2021-02-19 06:04:58
问题 I'm trying to send an SMS notification to the client after creating a shipment. In M1 I can do that with this event: <sales_order_shipment_save_after> But in Magento 2 there is no event triggering after creating the shipment. Can anyone advise me, please? 回答1: you can use sales_order_shipment_save_after event for this you need to create etc/events.xml file to define your event <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=

Magento 2 event/observer for create shipment

六眼飞鱼酱① 提交于 2021-02-19 06:04:56
问题 I'm trying to send an SMS notification to the client after creating a shipment. In M1 I can do that with this event: <sales_order_shipment_save_after> But in Magento 2 there is no event triggering after creating the shipment. Can anyone advise me, please? 回答1: you can use sales_order_shipment_save_after event for this you need to create etc/events.xml file to define your event <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=

Magento 2 Authorize.net DPM PCI Compliance

爱⌒轻易说出口 提交于 2021-02-11 15:43:06
问题 I'm hoping discuss how to use Magento 2 and Authorize.net in a way that removes most the PCI compliance risk. The Magento 2 Direct Post Method (DPM) appears to still contain a high level of risk and requirements. Our setup: Authorize.net was setup by our bank and had us use TrustWave to validate our PCI risk/compliance. We are currently using Authorize.net as the payment gateway and using the Out-Of-The-Box Authorize.net DPM module. One of the questions in the TrustWave questionnaire asks: Do

Retrofit Calling the Magneto API using @FormUrlEncoded getting issue while sending the data to the magneto server

本小妞迷上赌 提交于 2021-02-11 12:52:22
问题 override fun submitSupportTicket(createSupportTicket: MutableLiveData, question: String, details: String, department: String, filePath: String) { var getSupporttUrl = "https://xxxxxxxx/V1/ecomapi/postNewSupportTicket" if (filePath.isEmpty()) { /* var getDepartmentInput = Constants.getDefaultParameterJasonInput(Constants.getUserId()) getDepartmentInput.put("questionText",question) getDepartmentInput.put("detailText",details) getDepartmentInput.put("departmentId",department)*/ /* val requestMap

Retrofit Calling the Magneto API using @FormUrlEncoded getting issue while sending the data to the magneto server

淺唱寂寞╮ 提交于 2021-02-11 12:51:58
问题 override fun submitSupportTicket(createSupportTicket: MutableLiveData, question: String, details: String, department: String, filePath: String) { var getSupporttUrl = "https://xxxxxxxx/V1/ecomapi/postNewSupportTicket" if (filePath.isEmpty()) { /* var getDepartmentInput = Constants.getDefaultParameterJasonInput(Constants.getUserId()) getDepartmentInput.put("questionText",question) getDepartmentInput.put("detailText",details) getDepartmentInput.put("departmentId",department)*/ /* val requestMap

Instagram Basic Display API Error - Invalid scope: ['basic'] OR Invalid redirect_uri

跟風遠走 提交于 2021-02-08 15:15:54
问题 I'm using Magento 2.4.1, installed Social Login Extension and getting below error while login to Instagram, I'm using Hybrid auth libraries to login. "error_type": "OAuthException", "code": 400, "error_message": "Invalid scope: ['basic']"} You can check the screenshot below, Instagram.php <?php /*! * HybridAuth * http://hybridauth.sourceforge.net | https://github.com/hybridauth/hybridauth * (c) 2009-2012 HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html */ namespace Vendor

Instagram Basic Display API Error - Invalid scope: ['basic'] OR Invalid redirect_uri

孤街浪徒 提交于 2021-02-08 15:14:27
问题 I'm using Magento 2.4.1, installed Social Login Extension and getting below error while login to Instagram, I'm using Hybrid auth libraries to login. "error_type": "OAuthException", "code": 400, "error_message": "Invalid scope: ['basic']"} You can check the screenshot below, Instagram.php <?php /*! * HybridAuth * http://hybridauth.sourceforge.net | https://github.com/hybridauth/hybridauth * (c) 2009-2012 HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html */ namespace Vendor

Azure App Service Linux PHP - How to add “--with-freetype-dir=/usr/lib/x86_64-linux-gnu” to “./configure”?

℡╲_俬逩灬. 提交于 2021-02-08 10:22:34
问题 I'm trying to install Magento on Azure Linux App Service (PHP 7.3-apache) and I ran into this error: Image CAPTCHA requires FT fonts support Apparently the libfreetype6-dev despite being installed in the underlying container (at /usr/lib/x86_64-linux-gnu ) are not loaded by PHP. Basically, the solution proposed by the other StackOverflow answer is to reconfigure and recompile PHP. To reconfigure you must run the ./configure command with the flag --with-freetype-dir=/usr/lib/x86_64-linux-gnu .

Cant install magento 2 on xampp server

冷暖自知 提交于 2021-01-29 19:56:54
问题 I am trying to install Magento 2 and run it on XAMPP server. I have installed XAMPP and Apache and I've downloaded Magento 2 and extracted the file in htdocs . But when I type http://localhost/magento in the browser I get this: I think I should have the Magento setup page not this page. And when I click on it the Magento folder I get this error: Vendor autoload is not found. Please run 'composer install' under application root directory." So what is the problem here? Can anybody help me? 回答1: