I am trying to get my head around csp after upgrading Magento to 2.4.7. Prior to this, it was disabled. I have installed a custom module successfully and added a csp_whitelist.xml file with the following: <?xml version="1.0"?> <csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd"> <policies> <policy id="font-src"> <values> <value id="cloudflare" type="host">*.cloudflare.com</value> <value id="twitter.com" type="host">*.twitter.com</value> […]
Daily Archives: April 26, 2024
I’m using Magento 2.4.6 and want to add Customer Group to the New Order email template. We need some way to know what customer group belongs to because we do different things whether the order is from a general, wholesale, or fundraising customer. I don’t know if there is a […]
I have a plugin/interceptor hooking into a Vendor webhook function. This vendor webhook handler has an MagentoSalesModelOrder model where they add comments through the addStatusHistoryComment function. When my plugin function is called, I then call $order->getStatusHistoryCollection(true), to receive the comments. However the comments that are added by the Vendor webhook […]
I’m working on a Magento 2 project where I need to display custom reports under the order grid on the Sales Orders page. Specifically, I want to show the following fields: Total (totals sum) Subtotal (subtotals sum) Shipping (shipping sum) VAT (VAT sum) Quantity (quantities sum) Number of Orders Number […]
I have a custom collection for ordered products for a customer. $connection = $this->resourceConnection->getConnection(MagentoFrameworkAppResourceConnection::DEFAULT_CONNECTION); $customerSession = $this->customerSession->create(); if ($customerSession->isLoggedIn()) { $customerId = $customerSession->getId(); $result1 = $connection->fetchAll('SELECT distinct(product_id) FROM `sales_order_item` as soi INNER join sales_order as so on so.entity_id=soi.order_id WHERE so.customer_id = ' . $customerId); if (empty($result1)) { $this->messageManager->addWarningMessage(__("You don't have […]
I am running the current Dev Windows 11 build (version 24H2 OS Build 26100.1). Ever since I upgraded from 23H2 to 24H2 I’ve been unable to get WSL to work. When I run “wsl.exe” I get the following message: Windows Subsystem for Linux must be updated to the latest version […]
I’m trying to set the hostname and FQDN in /etc/hosts. Do I use the 127.0.0.1 IP or the LAN IP instead? 127.0.0.1 hostname hostname.domain 127.0.0.1 localhost localhost.localdomain or 192.168.1.6 hostname hostname.domain 127.0.0.1 localhost localhost.localdomain
I’m trying to stream video file to nginx rtmp server with ffmpeg, I’ve posted the exact commands/configuration i’ve used, but i get Connection reset by peer/Broken pipe errors from ffmpeg I’m running this on 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux I hope you can help me figure […]
I’ve already forwarded the port, and according to YouGetSignal the port is open and I can already connect to the RDP using the same port and my local IP. I’m on windows Home so I have to use RDP Wrap and I’m using an xfinity gateway.