Skip to content

admin

Auto Added by WPeMatico

i am fetching the data from database and display in magento admin grid, and the grid display blank

I have tried all of my thinking, I don’t understand why the grid displays a blank Controller namespace StateDrivesRequestQuoteControllerAdminhtmlBulkquote; use MagentoBackendAppAction; use MagentoBackendAppActionContext; use MagentoFrameworkViewResultPageFactory; use StateDrivesRequestQuoteModelRequestQuoteFactory; use MagentoFrameworkRegistry; class Index extends Action { protected $_resultPageFactory; protected $_requestQuoteFactory; protected $_registry;… Read More »i am fetching the data from database and display in magento admin grid, and the grid display blank

Magento 2 : How to save file in media folder using custom product attribute?

I have a create product attribute But it’s not save file in pub/media folder -> VendorModule:- MeetanshiProductAttachment -> attribute_field_name:- custom_product_attachment -> Media folder path:- custom/product/attachment MeetanshiProductAttachmentSetupInstallData.php <?php namespace MeetanshiProductAttachmentSetup; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupInstallDataInterface; use MagentoEavSetupEavSetupFactory; class InstallData implements… Read More »Magento 2 : How to save file in media folder using custom product attribute?

Magento 2.4.2 admin category URL redirect admin dashboard

Admin category URL link redirect admin dashboard issue how to fix this issue Current URL: Category https://test.cm/mv2/admin/catalog/category/edit/id/12/key/a7294ff98a7d8ff0eb16dbf92bd5ffae4da9620da389376dff80aa82e4d42b60/ Real category URL https://test.com/mv2/admin/catalog/category/edit/key/30dcd45cded283314a2410b81138a716658363d538381032f0bb16e3f66d14d0/id/12/ public function getCategoryEditUrl() { $category=$this->_registry->registry(‘current_category’); return $this->backendUrl->getUrl(‘catalog/category/edit’, [‘id’ => $category->getId()]); } above code get https://test.cm/mv2/admin/catalog/category/edit/id/12/key/a7294ff98a7d8ff0eb16dbf92bd5ffae4da9620da389376dff80aa82e4d42b60/ this URL but real… Read More »Magento 2.4.2 admin category URL redirect admin dashboard