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 […]
Magento1
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 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 […]
Discover how Adobe Commerce services can elevate your Magento store’s performance, security, and scalability for long-term growth Continue reading on Medium »
I am looking for a solution for customer registration on Magento version 2.4.7-p2, specifically for my wholesale store site. I need to display the following additional fields on the registration form: Company Name (required) Phone Number (required) TAX (required) Address (required) I have a multi-site, multi-store setup, with one site […]
Magento 2 version: 2.4.6-p8 Mariadb version : 10.4 I m facing an issue when we launch ‘bin/magento cache:clean‘ on our Magento 2 instance. Indeed, when the cache clean is launched, our database threads are overloading with one specific query : Sending data | SELECT DATE_FORMAT(period, '%Y-%m') AS `period`, SUM(qty_ordered) AS […]
How to override vendormagentoframeworkViewElementTemplateFileValidator.php using a preference or a plugin in a custom module. Workout: appcodeVendorEditCore1di.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="magentoframeworkViewElementTemplateFileValidator" type="VendorEditCore1frameworkViewElementTemplateFileValidator" /> </config> And my validator.php file path is, Vendor Path : vendormagentoframeworkViewElementTemplateFileValidator.php Custom Module Path: appcodeVendorEditCore1frameworkViewElementTemplateFileValidator.php I am updating following code, /**protected function isPathInDirectories($path, $directories) { […]
I have a Magento 2 installation on Mac(Sequoia) with MAMP(Apache). I have installed LocalStack on Docker(Colima) and it is working fine separately. I am trying to connect my Magento with Localstack using the following command bin/magento set:confi:set --remote-storage-driver="aws-s3" --remote-storage-bucket="local-bucket" --remote-storage-region="eu-central-1" --remote-storage-key="TestKey123" --remote-storage-secret="TestSec123" --remote-storage-endpoint="http://localhost:4566" --remote-storage-path-style=1 -n Getting error Adapter error: Unable […]
I am getting error when i install the magento 2.4.7 in xampp, after some correction i successfully installed it. I made update in appetcenv.php and index.php Is there any problem in future for update magento version. appetcenv.php 'system' => [ 'default' => [ 'web' => [ 'unsecure' => [ 'base_media_url' […]