there are currently three distinct “size” attributes for configuring product variants on the website: size_international size_clothing size_foot Considering it a wrong approach I intend to unify the three attributes under “size_international”. To do this I need to fix all existing products that use “size_clothing” and “size_foot”. <?php namespace VendorMyModuleModelConfigurableSize; class […]
Magento
I am having a strange problem. When some customers login the cache loads with error (the page is lopped and images don’t load). But for other clients after logging in the loading is normal. Is the page cache stored per user? How can I avoid this error? Thanks
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 […]
/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?