Open in new tab its not working fine in my admin form, its always showing checked if either its value false. In Database value showing correctly but in editpage it is always showing checked. [link] => Array ( [setting] => false [type] => category [default] => [category] => 4 )
Magento2
I am trying to make a tabular/grid view in the Admin area for some data that comes from an external API. For that I implemented a data provider. In here I need to create an instance for the external API client with the config stored in the store settings. However, […]
I am facing a weird issue with the “products in category” that reverts back from time to time on Magento 2.2.4 So if I change the products it suddenly rolls back to the products that were there before. For example The Category is “Coffee” but it was previously sausages. So […]
I have referenced a few different questions here and other articles online, but cannot for the life of me determine what is going wrong. Referenced: Event not triggered when new product added in admin : Magento 2 https://magecomp.com/blog/perform-operation-product-magento-2/ Magento 2: how to insert data when submit product in backend? Context: […]
After running composer update, composer starts upgrading and downloading. After that the update of packages are marked red “Update of name/module_name failed”. And all my important folders and files (bin,vendor, ..) are empty or gone. Does anybody know what can have caused this unwanted behaviour? I managed to recover the […]
I’m migrating Magento 2.3 to 2.4.5. Already I have a working feature of a custom attribute filter in the Product list page also having a plugin but the class MagentoCatalogSearchModelSearchIndexBuilder doesn’t exist in Magento 2.4 for elastic search 7. <type name="MagentoCatalogSearchModelSearchIndexBuilder"> <plugin name="search_index_builder_restrict_product_after_get" type="VendorRestrictProductPluginCatalogSearchSearchIndexBuilder" /> </type> Also applied the same […]
I am working on module for some affiliate program. Everything is fine , until i try to bring the ordered items in the succes page , just for testing my json that i need to sent further to another API via some JS. The problem: I order 3 or more […]
we have about 800,000 reviews in our Magento 2.4 for products in one website/store view. Now we want to launch another website / store view for another country. In both countries almost the same products are available. Now I have the task to make also the reviews available in the […]
I’ve created the following observer method that sets a cookie: if ($this->_cookieManager->getCookie(self::COOKIE_NAME)) { $this->_cookieManager->deleteCookie( self::COOKIE_NAME, $this->_cookieMetadataFactory ->createCookieMetadata() ->setPath('/') ->setDomain(null) ); } $metadata = $this->_cookieMetadataFactory ->createPublicCookieMetadata() ->setDuration(self::COOKIE_DURATION) ->setPath('/') ->setDomain(null); $this->_cookieManager->setPublicCookie( self::COOKIE_NAME, $mediumValue, $metadata ); It observes the event controller_action_predispatch to run on all pages. This code works perfectly when Varnish is […]