Skip to content

magento man

Should we use require_once in a module’s registration.php?

I am of the opinion that using require_once in registration.php is not ok and possibly against Magento coding standards. Am I right or wrong? <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, ‘Vendor_Module’, __DIR__ ); require_once(BP.’/lib/internal/SomeModule/src/somemodule/autoload.php’);

magento 2 : is it impact on isting page performance for $_product->getResource()->getAttribute(‘custom_attribute_code’)?

I have a custom attribute which has 15 text values. I am using $_product->getResource()->getAttribute($attributecode)->getFrontend()->getValue($_product); . In catalog page I have used above code get the text value of attribute for every product in for loop, is it impacted on performance… Read More »magento 2 : is it impact on isting page performance for $_product->getResource()->getAttribute(‘custom_attribute_code’)?

Magento 2.3: Error on admin product save after changing attribute set

I am getting this error after I change the attribute set and save the product: Fatal error: Uncaught Error: Call to a member function getBackendTable() on boolean in /chroot/home/aa8492ec/018d4ad51c.nxcli.net/html/vendor/magento/module-catalog/Model/ResourceModel/Product.php:350 Stack trace: #0 /chroot/home/aa8492ec/018d4ad51c.nxcli.net/html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(331): MagentoCatalogModelResourceModelProduct->deleteSelectedEntityAttributeRows(Object(MagentoCatalogModelProductInterceptor), Array) #1 /chroot/home/aa8492ec/018d4ad51c.nxcli.net/html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(304): MagentoCatalogModelResourceModelProduct->removeNotInSetAttributeValues(Object(MagentoCatalogModelProductInterceptor)) #2 /chroot/home/aa8492ec/018d4ad51c.nxcli.net/html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(1942):… Read More »Magento 2.3: Error on admin product save after changing attribute set

Customer name not displayed in confirmation mail in Magento 2.4?

After updating to Magento 2.4.4 the customer name is not displayed in my confirmation mail. I tried all variations I could find: {{var customer.firstname}} {{trans “%customer_name ” customer_name=$order.getShippingAddress().getFirstName()}} {{trans “%customer_name ” customer_name=$order.getBillingAddress().getFirstName()}} {{trans “Hello %customer_name,” customer_name=$customer.name}} Nothing works. Was there… Read More »Customer name not displayed in confirmation mail in Magento 2.4?

I have one html file I need to upload to the net

There seams to be plenty full freebee upload sites for image and audio and even video like the likes of youtube. But when I want to upload a… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1887078&goto=newpost