Skip to content

admin

Auto Added by WPeMatico

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

Magento 2 How to update quote totals information from admin

Magento 2.4.5-p1 version using. We want to give custom discount via our custom module Using this code – <?php namespace NamespceModulenameControllerAdminhtmlQuote; use MagentoBackendAppActionContext; use MagentoFrameworkControllerResultFactory; use MagentoQuoteApiDataShippingAssignmentInterface; use MagentoQuoteApiDataTotalItemInterface; use MagentoSalesRuleModelRuleFactory; use MagentoSalesRuleApiRuleRepositoryInterface; use MagentoQuoteModelQuoteAddressTotal; use MagentoFrameworkAppResourceConnection; use MagentoFrameworkDBTransactionFactory; class… Read More »Magento 2 How to update quote totals information from admin