I have created a customer custom attribute with the above code: namespace VendorCustomerSetup; use MagentoCustomerSetupCustomerSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory; class InstallData implements InstallDataInterface { /** * Customer setup factory * * @var CustomerSetupFactory */ private $customerSetupFactory; /** * @var AttributeSetFactory */ private $attributeSetFactory; private […]
Daily Archives: January 8, 2025
Hi I am getting the Deprecated Functionality: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in From upgrading to php version 8, the module doesnt have an updated version I can use so I need to fix the following code: if ($blockdir == ‘ltr’ && strpos($lastfontreqstyle, […]
I want to load html of a particular block and save it in cms/block programmatically by using a CLI command. MagentoFrameworkViewResultPageFactory returns an empty string when calling toHtml() on it. I have also tried MagentoFrameworkViewLayoutFactory but result is same. What is the right way of loading a block inside cli […]
Is it possible to show thumbnails on mobile/responsive view instead of dots on the product detail page with Fotorama on Luma? If so, how?
I am trying to update the “customer_entity” table “custom_column” value upon customer confirmation. For that I used a plugin as follow. This is my di.xml content for this pluging <type name="MagentoCustomerModelAccountManagement"> <plugin name="customCustomerEntityColumn" type="VendorModulePluginModelAccountManagementPlugin"></plugin> </type> And this is my Plugin class and method : <?php namespace VendorModulePluginModel; use MagentoCustomerApiCustomerRepositoryInterface; class […]
I am constantly using the conditional formatting on Excel to highlight every other row in a spreadsheet by using the following formula: =MOD(ROW(),2)=0 No matter how many times I use it, I cannot memorize it, and I have to look it up. Is there a way to add this conditional […]
I am trying to encrypt my E drive using BitLocker with the password prompt appearing during boot, not after logging into Windows. The reason for this is that I need to run a script at machine boot which depends on the data stored on the E drive. And I do […]
I just set up a RAID 1 array using mdadm on Debian. I am trying to enable mdadm email monitoring using msmtp. I am following the msmtp documentation (https://marlam.de/msmtp/msmtp.html#Examples) and want to store my Gmail app password using either secret-tool or gpg. Both tools work fine on their own: I […]
I am running this Rust server on Win 11 PC. The log says that it is running at 127.0.0.1:53932. If I go to http://127.0.0.1:53932/healthz on the same PC, I get Ok, which means it works OK. Now I try to access it from another machine (Macbook) within the same LAN. […]