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.
Magento1
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 […]
I have a configurable product, which has 4 child products. I want to show the child products to the end customer’s product view page, based on a specific attribute value in the child products. (e.g ‘Hide child from product page’ set to ‘true’). So if one of those 4 product […]
I added two categories with sub-categories from my magento site with multiple websites 2.4.3-p1. i have imported 100 products assigned products to main category through sheet. after that created subcategory and trying to assign products to subcategory using admin pannel getting Unique constraint violation found {“exception”:”[object] (MagentoFrameworkExceptionAlreadyExistsException(code: 0): Unique constraint […]
Magento 2.4.6-p2 When trying to add my custom payment I’ve got an error in console when going to checkout/#payment page. Something like that: [ERROR] Failed to load the “Alex_Mypay/payment/mypay-form” template requested by “checkout.steps.billing-step.payment.payments-list.mypay” Does anybody know where this bug is from? Copy/paste from Magento_OfflinePayments app/code/Alex/Mypay/view/frontend/web/js/view/payment/method-renderer/mypay-method.js defaults: { template: 'Alex_Mypay/payment/mypay-form' }, […]