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 […]
Magento
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 […]
Is it possible to formulate an SQL that gets all products along with its product attributes (instead of just name, description, etc as what I have mostly seen on the internet) of a certain category?
Good afternoon, everyone We have a invoice.php which is all standard just like this one here: https://github.com/pepe1518/magento2/blob/master/vendor/magento/module-sales/Model/Order/Pdf/Invoice.php I want to add our address, VAT number and Company Reg onto it but I am not sure where it goes. I think I need to add something like this in somewhere: echo […]
I’m using an extension from a vendor. The vendor is doing some magento frontend manipulation adding some extra form fields to account create page. Now that module is in control/overwriting the magento version. How can overwrite/control the vendor version from my theme?
I’m trying to track my users referrer in Magento but varnish remove all utm from social media. I’ve removed the utm regex from the default.vcl file and now I get utms in my request but setting the cookies still not working. I’m sure this is a varnish issue, because everything […]