I am having an issue with Google Authenticator in Magento 2. If I type in a wrong code, it prompts me with an error that the code is wrong, but if it’s right, it redirects me back to the prompt to type my code in again. There are no errors […]
Magento
I have a Problem with my Product Importer. For a bit of Background, we get Products by a RabbitMQ Queue and they get processed by a Model. Creating Products seems to be no Problem, but if I want to check if a Product already exists I always get an Out […]
I installed magento 2.4.3-p1. Everything goes good , backend working frontend is working fine but there is an issue. I am able to access the frontend from abc.com/index.php and inner links are working fine like abc.com/dress . But if I try to access my domain with abc.com/ it shows me […]
I am trying to show custom attributes in the checkout/cart page. I have created a catalog_attributes.xml and put it in a custom module <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd"> <group name="quote_item"> <attribute name="delivery_due_date"/> <!-- add your custom attribute name --> </group> </config> and then in cart/info/default.phtml I have <span>due: <?php echo $_item->getProduct()->getData('delivery_due_date');?></span> This […]
I tried to integrate Klaro consent in Magento 2.4.2 using two phtml-files that are loaded in the right order. In a test html-file the cookie consent is shown properly. Both js-files are loaded in Magento and output a console.log. But the Cookie consent is not shown at all. All caches […]
In Magento 2.4.2, when i am going to update products programmatically, it’s removed customizable options automatically Below code for your reference: $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection'); $collection = $productCollection->addAttributeToSelect('*')->load(); foreach ($collection as $product){ $product->save(); } It’s automatically removed existing customizable options Before executing above code After executing above code
I need to know, Is there any side issues, if we increase the below path size more than max in config file. system/security/max_session_size generally as per magento max size is 256000 Can we increase more then 256000 until which limit can we extend the size. Anyone who know ever used […]
Use Case From a product with quantity 0 and Out of stock status. I have an event <event name="catalog_product_save_after"> <observer name="stock_alert" instance="CpyStockAlertObserverSaveProduct" /> </event> Change the value adding quantity and setting in stock status When I check the product saleable value in the observer public function execute(Observer $observer) { $product […]
I’m using the module Amasty’s customer Attributes to create custom customer attributes, I like to get custom attribute displayed value but i got the option value. I like to get the value in data-title attribute I tried this if ($customAttribute = $customer->getCustomAttribute('custom_value')){ $regrouper = $customAttribute->getValue(); var_dump(regrouper);exit; //it returns 615 instead […]