Skip to content

magento man

Magento 2 category attribute value returns null

Vendor/Extension/Setup/Patch/Data/CustomAttribute.php <?php namespace VendorExtensionSetupPatchData; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoCatalogModelCategory; class CreateCustomCategoryAttribute implements DataPatchInterface { private $moduleDataSetup; private $eavSetupFactory; public function __construct(ModuleDataSetupInterface $moduleDataSetup, EavSetupFactory $eavSetupFactory) { $this->moduleDataSetup = $moduleDataSetup; $this->eavSetupFactory = $eavSetupFactory; } /** * {@inheritdoc}… Read More »Magento 2 category attribute value returns null

Error: Call to a member function setActive() on bool in /var/www/html/project.local/vendor/magento/module-backend/Model/View/Result/Page.php:26

showing this error while clicking on a menu item created for a grid public function execute() { /** @var MagentoBackendModelViewResultPage $resultPage */ $resultPage = $this->_resultPageFactory->create(); $resultPage->setActiveMenu(‘Vendor_Grid::menu_id’); $resultPage->getConfig()->getTitle()->prepend(__(‘Certificate Grid List’)); return $resultPage; }

How to update checkout input field id

Is it possible to update the checkout input field Id to use a constant text, eg: addressLine1, addressLine2 and etc. Currently is showing as unique number and is different each time the browser is refreshed. Thanks

Custom Attribute not saving into the Sales_Order Table

This is my PLugin : <?php namespace VendorModulePlugin; use MagentoSalesApiDataOrderItemExtensionFactory; use MagentoSalesApiDataOrderItemInterface; use MagentoSalesApiDataOrderItemSearchResultInterface; use MagentoSalesApiOrderItemRepositoryInterface; use MagentoCatalogModelProductFactory; /** * Class OrderItemRepositoryPlugin */ class OrderItemRepositoryPlugin { protected $orderItemExtensionFactory; protected $productFactory; /** * OrderItemRepositoryPlugin constructor * * @param OrderItemExtensionFactory $orderItemExtensionFactory *… Read More »Custom Attribute not saving into the Sales_Order Table