<?php namespace AlexAskQuestionControllerSubmit; use AlexAskQuestionModelAskQuestionFactory; use MagentoFrameworkAppActionAction; use MagentoFrameworkAppActionContext; use MagentoFrameworkControllerResultJson; use MagentoFrameworkControllerResultFactory; use MagentoFrameworkDataFormFormKeyValidator; use MagentoFrameworkExceptionLocalizedException; class Index extends Action { public const STATUS_ERROR = 'Error'; public const STATUS_SUCCESS = 'Success'; /** * @var Validator */ private Validator $formKeyValidator; /** * @var AskQuestionFactory */ private $askQuestionFactory; /** * Index […]
Daily Archives: December 27, 2023
In Magento 2.4.1 I developed below code to compress the PDF and it was working fine Recently I updated Magento to 2.4.6-p3 and now compression stoped working. app/code/Vendor/CompressPDF/etc.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoSalesModelOrderPdfInvoice" type="VendorCompressPDFModelSalesOrderPdfInvoice" /> </config> app/code/Vendor/CompressPDF/Model/Sales/Order/Pdf <?php namespace VendorCompressPDFModelSalesOrderPdf; class Invoice extends MagentoSalesModelOrderPdfInvoice { /** * Set […]
I want to add Installed version of current extension/module in admin menu like below screenshot. https://i.imgur.com/0P7QZSA.png Note: For creating menus in m2 admin, I am using following code from /etc/adminhtml/menu.xml file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd"> <menu> <add id="My_Module::main" title="My Module" module="My_Module" sortOrder="999" parent="Magento_Backend::stores" resource="Magento_Backend::stores" /> <add id="My_Module::storeCredentials" title="Store Credentials" […]
We use Magento 2.4.6-p3, php8.2… I want to do mass edit of products attributes in backend grid. After choosing select All – confirmation is visible saying for example: 7565 records found (7565 selected). So, I select Update attribute, do editing and click Save. Unfortunately only first in the line/grid product […]
I am unable to use Cmder because it behaves badly on pressing Ctrl-C. Most of the times it just prints ^C But if you try to break some program at unlucky moment, it hangs displaying “Not responding” at window title If you force window to close, it still won’t close […]
i couldn’t post this on stack overflow since it said it was spam so here it goes Description: When executing sudo apt-get update, I’m encountering errors related to the ‘bookworm-security’ repository. The output of the command includes the following error message. domin@fbi:~$ sudo apt-get update Hit:1 http://packages.microsoft.com/repos/code stable InRelease Hit:2 […]
I know it is possible to migrate from one account on a mastodon server to another account on another mastodon server. It also moves all your old account’s followers to the new account. But what if I have yet another old account on another sever and want to move its […]
Today my WiFi connection got very slow apparently with no reason (at least, I can’t find one). When I’m only using browser (Firefox standard) stay very low, around 50KiB/s with a few short-raises. When I open Transmission and a fully-legal movie download from TPB download rates reaches 5 MB/s. Illustrating: […]
On executing youtube-dl -g <youtube_link> we get the urls for the video and the audio, we can play those urls with vlc for example. But for how long those urls are valid?, they’re of the form: https://rr4---sn-uqx2-w50l.googlevideo.com/videoplayback?expire=1703633398&ei=lg2LZYr4Jv_6j-8P45iR-Ak... What’s the meaning of that expire=1703633398.