Skip to content

magento2.4

Auto Added by WPeMatico

In magento 2.4 How to override the Checkout Agreement Config Provider for Change the terms and condition login

I need to overwrite the config provider of checkout agreement in di.xml <type name=”MagentoCheckoutModelCompositeConfigProvider”> <arguments> <argument name=”configProviders” xsi:type=”array”> <item name=”checkout_agreements_config_provider” xsi:type=”object”>MagentoCheckoutAgreementsModelAgreementsConfigProvider</item> </argument> </arguments> </type> For this class vendormagentomodule-checkout-agreementsModelAgreementsConfigProvider.php protected function getAgreementsConfig() { $agreementConfiguration = []; $isAgreementsEnabled = $this->scopeConfiguration->isSetFlag( AgreementsProvider::PATH_ENABLED, ScopeInterface::SCOPE_STORE… Read More »In magento 2.4 How to override the Checkout Agreement Config Provider for Change the terms and condition login

How to use curl in magento 2 method?

I have a curl script to send sms. Below is the code. $userId = $this->gupShupConfig->getSenderUsername(); $password = $this->gupShupConfig->getSenderPassword(); $smsApiUrl = $this->gupShupConfig->getSmsApiUrl(); $post_fields = array(); $post_fields[“method”] = “sendMessage”; $post_fields[“send_to”] = $formattedMobileNumber;//”919820XXXXXX”; $post_fields[“msg”] = $smsMessage; $post_fields[“msg_type”] = “TEXT”; $post_fields[“userid”] = $userId; $post_fields[“password”]… Read More »How to use curl in magento 2 method?

Why are various minified JavaScript files missing in backend?

On the backend login page and within the backend itself the following files from https://store.example/static/adminhtml/Magento/backend/en_US/ are not being found (404): jquery.min.js, js/theme.min.js, mage/backend/bootstrap.min.js, mage/adminhtml/globals.min.js, Magento_Catalog/catalog/product.min.js, Magento_Translation/js/mage-translation-dictionary.min.js, underscore.min.js, mage/backend/tabs.min.js, and mage/adminhtml/grid.min.js. The .min.js files do indeed not exist within pub/static/adminhtml, but… Read More »Why are various minified JavaScript files missing in backend?

Class ZendConsoleResponse does not exist After Magento 2 upgrade

After upgrade from Magento 2.4.2 to 2.4.4, and run bin/magento setup:di:compile I got this error Class ZendConsoleResponse does not exist This is my composer.json file { “name”: “magento/project-community-edition”, “description”: “eCommerce Platform for Growth (Community Edition)”, “type”: “project”, “version”: “2.2.1”, “license”:… Read More »Class ZendConsoleResponse does not exist After Magento 2 upgrade