I am getting my images in the array. I need to check the if image in the array is empty then it should be replaced with the thumbnail image. Here is my code : if (is_null($imageData->getData('demo_promo')) Please help me to replace the thumbnail image instead of the empty demo_promo in […]
Magento1
The size of the catalog is about 70k products. When reindexing sometimes it turns out Could not acquire lock for index:catalog_category_product and Could not acquire lock for index:catalog_product_category or only stuck in INSERT INTO catalog_category_product_index_store2_tmp ('category_id', 'product_id', 'position', 'i.. (I got this from SHOW PROCESS LIST phpmyadmin). there is no […]
I have created a custom module and it’s working fine,if I only run php bin/magento setup:upgrade command. However, when I attempt to run php bin/magento s:d:c it raises an exception. Type Error occurred when creating object: VendorModuleNameModelResourceModelPriceResultCollectionInterceptor, Argument 5 passed to VendorModuleNameModelResourceModelPriceResultCollectionInterceptor::__construct() must implement interface MagentoFrameworkDBAdapterAdapterInterface or be null, string […]
Magento 2 uses fixed pixel dimensions to specify the size of the product image watermark. This is a problem as the watermark could look very small or very big on the product image, depending on the product image size. Instead, how could a module be developed to size the watermark […]
Class Zend not found in magento now. So for that, we have fixes for those classes which is currently using the same but we want to upgrade in latest magento 2.4.X versions. common errors of Zend: Error: Class Zend_Json not found Error: Class Zend_Http_Client not found Error: Class Zend_Filter not […]
when customers are trying to create a profile on our client’s website they get the following error message: “The store that was requested wasn’t found. Verify the store and try again.” After some troubleshooting, I think I found what the issue is, I noticed that the store id was 6 […]
Can somebody help? I have installed magento 2.4.6-p2 and wanted to install Pagebuilder. So I downloaded “magento2-page-builder-develop”, but i get an error while compiling: Unable to apply data patch MagentoPageBuilderSetupPatchDataUpgradePageBuilderStripStyles for module Magento_PageBuilder. Original exception message: Missing required argument $characterSet of GtDomDocument. After that when I did setup:di:compile I get […]
i’m very new in magento2 and i’m following the official docs. I’m playing around trying to change some css styles in the homepage but i seem to have issues with clearing the static files cache manually. if i go to the admin panel and go to System > Tools > […]
My situation: I created a new token_table (with InstallSchema.php) to store the token that will be needed when sending an API request to my endpoint. Now I managed to create a form where admin user can enter the token and save it. But after clicking on the “Save” button I […]