I have a website running on Magento where my account feature does not work on the mobile version of the website. I want it to look like the second picture when I click on the account button. enter image description here enter image description here I tried moving around elements […]
Magento
recently I came across one developer’s code in magento 2, where he was accessing objects in another class to avoid dependency injections. Like for example we have VendorFeatureHelplerData class and that has one method that we use multiple places. VendorFeatureHelplerDataCache <?php declare(strict_types=1); namespace VendorFeatureHelper; use MagentoFrameworkAppHelper; class Cache extends HelperAbstractHelper […]
We are getting orders from Magento that feeds into our Enfocus Switch computer. I have an order that has given the error: <?xml version="1.0"?> <response> <message>Internal Error. Details are available in Magento log file. Report ID: webapi-65d79324a87f6</message> </response> I do not have access to the underlying OS, only the Magento […]
I’m using the ODBC driver, which is connected to MS SQL Server. But when I’m passing this information in the Magento 2 env.php file,. I’m getting this: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for ODBC_Data_Source failed: Name or service not known ODBC_Data_Source is my DSN name, which I’m using for host.
I am not an expert in Magento and I have a problem with the sum of my bundle product when it shows the final price. The total sum of the product should be 4,850.00 but as we see it shows 4,849.99 and it should not be like that, if I […]
I created a module for custom items similar to products and showing on frontend as a listing and detail page. I want to show the listing page on this URL: storeurl.com/custom which is loading fine but the detail page is not showing up on the desirable URL which should be: […]
Module/CustomProductType/etc/product_types.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/product_types.xsd"> <type name="Custom" label="Custom Product Type" modelInstance="BrainvireCustomProductTypeModelProductTypeCustomProduct" indexPriority="60" sortOrder="80" isQty="true"> <priceModel instance="BrainvireCustomProductTypeModelProductTypePrice" /> </type> </config> Module/CustomProductType/Model/Product/Type/CustomProduct.php <?php namespace ModuleCustomProductTypeModelProductType; class CustomProduct extends MagentoCatalogModelProductTypeVirtual { const TYPE_CODE= 'new_product_type_code'; public function deleteTypeSpecificData(MagentoCatalogModelProduct $product) { } } Module/CustomProductType/Model/Product/Type/Price.php <?php namespace ModuleCustomProductTypeModelProductType; class Price extends MagentoCatalogModelProductTypePrice { } Module/CustomProductType/Setup/Patch/Data/InstallData.php […]
I tried the Magento2: How do I add a filter for “is_in_stock” on category page layered navigation? and it only works correctly for one page. If I have 24 products on my page, I can see a total of 24 products (in stock and out of stock) through these filters. […]
I’m building my first Magento site after spending the last few years developing sites with other eCommerce engines – wow, Magento does everything differently huh?! Not really best practice but how do you work with CSS/Less/Sass while you’re developing a site? I’m currently extending the CSS using _extend.less and have […]