I want to update Magento from 2.4.1 to 2.4.4-p2 and I need to do other updates first, including updating the Composer from 1.10.24 (current version) to at least 2.1.0. The issue is that my production environment is on the same server as the development environment and updating the Composer will […]
Magento
i try to use $request->getDestRegionCode() but it dosent work <?php class Custom extends AbstractCarrier implements CarrierInterface { protected $_code = 'custom'; protected $rateResultFactory; protected $rateMethodFactory; public function __construct( ScopeConfigInterface $scopeConfig, ErrorFactory $rateErrorFactory, LoggerInterface $logger, ResultFactory $rateResultFactory, MethodFactory $rateMethodFactory, array $data = [] ) { $this->rateResultFactory = $rateResultFactory; $this->rateMethodFactory = $rateMethodFactory; […]
I have only been working with Magento for a few months, wanting to get some ideas on best way to improve the below query. Thanks in advance. So I am working on a module created a few years ago that was running on Magento 2.3.5. This site is being updated […]
I searched and found that the export was executed by a corn job, and I think the file that was executed in the process is “MagentoImportExportModelExportConsumer::process” but I add a die() at the beginning of the file and the export was successful, I want to know where the data is […]
i’m trying to create custom popup modal when click on “Go to checkout” button from Minicart. i have write this code to open custom modal if the guest checkout is disabled, and redirect the customer to checkout if the customer is logged in. this is my minicart mixin define([ 'jquery', […]
i created a shipping method, for example, the cost of delivery is $15, but if you deliver to the USA, then multiply the amount by 2 Model/Carrier/Custom.php <?php namespace CustomShippingMethodModelCarrier; use MagentoQuoteModelQuoteAddressRateRequest; use MagentoShippingModelRateResult; use MagentoShippingModelCarrierAbstractCarrier; use MagentoShippingModelCarrierCarrierInterface; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoQuoteModelQuoteAddressRateResultErrorFactory; use PsrLogLoggerInterface; use MagentoShippingModelRateResultFactory; use MagentoQuoteModelQuoteAddressRateResultMethodFactory; class Custom […]
What is the purpose of the shipping cost, I can observe the shipping Price is always visible on the frontend calculation. I’ve tried to edit the below file to verify the shipping cost. But it is not visible anywhere or not added to the shipping price it seems. vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php /** […]
Indexing console Everything else is working perfectly. i also disabled the elasticsearch and checked but error still there. Error is with Query, at last word “AND (())”, when i remove this and run directly on Mysql, it works. Where this Query is written so i could fix it. Thanks