I am using Redis cache for session storage in my Magento 2.4.3-p2 based store. The app/etc/env.php setting looks like 'session' => [ 'save' => 'redis', 'redis' => [ 'host' => '<private-ip>', 'port' => '6380', 'password' => '', 'timeout' => '5', 'persistent_identifier' => '', 'database' => '2', 'compression_threshold' => '2048', 'compression_library' […]
Daily Archives: December 11, 2022
In Magento 2 di.xml we can inject an array to a class like this: <type name="VendorModuleModelFoo"> <arguments> <argument name="data" xsi:type="array"> <item name="item1" xsi:type="string">Item 1</item> <item name="item2" xsi:type="string">Item 2</item> </argument> <arguments> </type> How can we inject the same data array to another class VendorModuleModelBar without duplicating it like this? <type name="VendorModuleModelBar"> […]
I have 2 columns in xml with js component, but i want display each column if condition is true, so if precio_anterior is not empty and value is different to 0 show precio_anterior column if not, show precio_suscriptor: This is my code: /app/code/Vendor/Catalog/view/frontend/ui_component/widget_recently_viewed.xml <column name="precio_suscriptor" component="Vendor_Catalog/js/product/precio_suscriptor" sortOrder="3" displayArea="details-area"> <settings> <label […]
Currently, I am not getting the out-of-stock products from the configurable product on the product page (product/view controller). File : <?php /** * Product view controller */ namespace MagentoProductRedirectionControllerIndex; use MagentoCatalogApiProductRepositoryInterface; use MagentoCatalogModelDesign; use MagentoFrameworkAppActionHttpPostActionInterface as HttpPostActionInterface; use MagentoFrameworkAppActionHttpGetActionInterface as HttpGetActionInterface; use MagentoFrameworkAppActionContext; use MagentoFrameworkAppObjectManager; use MagentoFrameworkControllerResultForward; use MagentoFrameworkControllerResultForwardFactory; use […]
I hope my suggestion is implementable (which I’m not seeing anywhere at the moment); yet, it might be unrealistic due to possilble conceptual misunderstandings and/or terminology misuses from my side. Dislaimer! If you have a very little time, and yet a VERY BIG LOVE for VSCode or python — feel free […]
I have an Ubuntu distribution running on WSL. Every load, it opens my user lraj22 by default. Using an /etc/wsl.conf file, I set [user] default= It still opens up my user profile. If I set it to root, it opens the root profile, and if I set it to some […]
I have freshly installed TrueNAS SCALE in version 22.02.4 and I can’t forward the connection port of the qBittorrent app (version 4.5.0_1.0.9). I have tried various configurations without success. I also have the Plex app which I have been able to forward its corresponding port without any issues. Settings I’ve […]
I can’t detect my USB on RedHat Enterprise 9, I did make sure that the removable disk is connected to VMware and not the host. I can detect it on Kali Linux btw I even tried to use an external hard drive and still had the same issue.