Newbie – do not know anything about webpage development but my company has been using Magento forever and we had an older version. Some of our customer pay with purchase order since updating to the 2.4.5 version the invoice option does not show up when there are purchase orders. I […]
Magento
I want to allow only numbers for a certain input field in a Magento Admin Control-Table/Config-Table. Has anyone done that before or has a hint? Greez
There is the standard way to implement “load more products” via ajax request the next page and append the needed part of the html code to listing. There is the problem with js init also, the std method to solve it $(‘body’).trigger(‘contentUpdated’) on Ajax success. In Hyva that doesn’t work. […]
Anyone have this issue before, I notices even in a freshly installed magento 2.4.4p4 commerce edition this issue occur Let me know if this is the correct page to post this issue or I should post this issue into a magento github community or Google Analytics community, The issue can […]
I’m very new to Magento. I’m using Magento 2.4.6 and I 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 […]
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 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 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> […]
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 […]