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; […]
Daily Archives: October 31, 2022
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 […]
This is an intermittent problem as sometimes order confirmation emails are received, i.e. the cronjob runs automatically and doesn’t remain as ‘pending’ in cron_schedule table. But most of the time it’s stuck as pending as cron doesn’t run. (php bin/magento cron:run works). I’m getting mulitple errors in var/log/magento.cron.log: Magento supports […]
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 […]
The cells I selected in Screenshot are relatively the same. What I want to do now, is reuse that upper table by copying the lower table beneath, but don’t change values. I was thinking if I could at the same time selected cells turn to absolute by pressing F4, I […]
A couple of years ago or something, I learned that MPC-HC has an off-by-default setting which enables YouTube-like “seek bar thumbnails”, and I immediately turned it on. But after some time, it was automatically turned off again, without me doing anything. None of my many other settings were reset. Only […]
I would like to allow connections to specific domains through my nftables filter. I managed for specific hostnames with: ip6 daddr aur.archlinux.org accept However, I would like wildcard matching of something like *.archlinux.org or keyserver.*. Entering such a pattern directly did not work, neither double-quoted. Furthermore, the domain matching only […]
I have an Asus ROG Scar II Strix that had the stock 512gb NVMe ssd, which I have upgraded to a Crucial 4TB PCIe 3.0 M.2 ssd. On the original ssd, I five partitions, which I have cloned onto the new drive (grub, system recovery, windows 10 home install, Manjaro […]