Skip to content

magento man

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

How I can create a Model and Save it using Magento2?

I made a seeder custom command in order to populate multiple models for my developemtn easyness: <?php namespace MageGuideFirstModuleConsoleCommand; use MageGuideFirstModuleModelBlogPost; use MageGuideFirstModuleModelResourceModelBlogPostResource; use SymfonyComponentConsoleCommandCommand; use SymfonyComponentConsoleHelperProgressBar; use SymfonyComponentConsoleInputInputInterface; use SymfonyComponentConsoleOutputOutputInterface; /** * Seed Multiple Blogposts with Skus */ class… Read More »How I can create a Model and Save it using Magento2?