My store’s search seems to be working for some terms and not for others. For example: mywebsite.net/catalogsearch/result/?q=dilatex works, whereas mywebsite.net/catalogsearch/result/?q=creatine simply stays in the same page I was when searching (instead of showing “no results” or such). It wasn’t like this till recently, and I have no clue to the […]
Magento
/etc/elasticsearch have deleted by me accidentally.Now, when I run the command(sudo systemctl start elasticsearch ) to enable service of elasticsearch than the following error show. Job for elasticsearch.service failed because the control process exited with error code. and by getting configuration of elasticsearch to run command(sudo nano /etc/elasticsearch/elasticsearch.yml ) the […]
I tried to override the MagentoCatalogModelLayer.php to rewrite getProductCollection() method but it didn’t work for me. I have tried multiple things and end up writing here as I had no clue what went wrong. Added in etc/frontend/di.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="MagentoCatalogModelLayer" type="VendorModuleModelLayer" /> </config> I have no […]
I’m trying to add the tag , loading=”lazy” to the template that I’ve found that prints the image, but it´s not working. app/design/frontend/Vendor/Theme/Magento_Catalog/web/template/product/image_with_borders.html <span class="product-image-container" data-bind="style: {width: width + 'px'}"> <span class="product-image-wrapper" data-bind="style: {'padding-bottom': height/width*100 + '%'}"> <h1>Test</h1> <img class="product-image-photo" data-bind="attr: {src: src, alt: alt, 'loading': 'lazy'}" /> </span> </span> […]
I have a M2.2 shop and I just upgrade it to M2.4 I have MagePlaza OneStepCheckout installed. When I go to checkout, I get errors on my console regarding the requests to the api. Somehow the Url is wrong and a “undefined” is added to the request. The calls that […]
I want to update the Alt Text for each of my 14,000 products to match them with the Product Name. Is there a script I can use or an option I can select to edit them all at once? How long will it take?
By default when I upload an image to Magento using the admin panel, it includes all the Roles (Listing Hover Image, Swatch, etc.). I want it just to select Base, Small and Thumbnail roles. So is there a way for me to change the image uploads default Role selection? (i.e. […]
I am trying to get the value of system.xml from a plugin I am developing. <field id="Moduleposition" translate="Module" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Seleccionar tienda</label> <source_model>MageplazaSimpleshippingModelConfigSourceConfigOption</source_model> </field> From the following function I am initially trying to return a test value to show it inside an alert public function getSelectStore() { […]
Is there a way to call multiple blocks in a single controller in Magento 2? The below code only populate the single grid but I want it to return two blocks. public function execute() { /* @var MagentoFrameworkControllerResultRaw $resultRaw / $resultRaw = $this->_resultRawFactory->create(); return $resultRaw->setContents( $this->_layoutFactory->create()->createBlock( VendorModuleNameBlockAdminhtmlReportGrid::class, 'mytestgrid' )->toHtml() ); […]