So regular, webp conditional loading works: map $http_accept $webp_suffix { default ""; "~*webp" ".webp"; } with small exception of pulling out of svg to separate location (otherwise there was xml parsing error in browser) and creating additional variable to persist $webp_suffix value location ~* .(svg|svgz)$ { add_header Cache-Control "public"; add_header […]
Magento
When I run composer require magento/product-enterprise-edition=2.4.5-p1 -W I got the following error Problem 1 - magento/product-community-edition 2.4.5-p1 requires magento/module-catalog 104.0.5-p1 -> found magento/module-catalog[104.0.5-p1] but these were not loaded, likely because it conflicts with another require. - magento/product-enterprise-edition 2.4.5-p1 requires magento/product-community-edition 2.4.5-p1 -> satisfiable by magento/product-community-edition[2.4.5-p1]. - Root composer.json requires magento/product-enterprise-edition […]
Is their a command line config:set or a easy mysql update. I know there is a mysql update for this configuration but I’m just uncertain on what table it might be in. Any help would be greatly appreciated. I did some quick searching online but couldn’t find anything.
I want use ‘sales_email_order_items’ layout handle in my custom email. For that i called ‘sales_email_order_items’ handle in my custom email template, but is not showing order details in email. How to use ‘sales_email_order_items’ in custom email templates in magento 2. Thanks.
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 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 […]
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 […]