I have a site with magento 2.4 in AWS with kubernetes and I try to execute the jobs with bin/magento cron:install. This generate in crontab a new line: The problem is when I check with command top the processes I see multiple cron:run executing: processes overlap and causes the machine […]
Magento
I have a custom model with three fields, i.e id, city and region. How can I remove duplicates from the region column when querying the table? How can I group all the cities under the same region? I have pasted the response from the model below Array ( [0] => […]
I am adding custom tax based on a particular shipping and payment method using the following plugin: use MagentoCustomerApiDataAddressInterfaceFactory as CustomerAddressFactory; use MagentoCustomerApiDataRegionInterfaceFactory as CustomerAddressRegionFactory; use MagentoQuoteApiDataShippingAssignmentInterface; use MagentoQuoteModelQuoteAddress; class Tax extends MagentoTaxModelSalesTotalQuoteTax { /** * Class constructor * * @param MagentoTaxModelConfig $taxConfig * @param MagentoTaxApiTaxCalculationInterface $taxCalculationService * @param MagentoTaxApiDataQuoteDetailsInterfaceFactory […]
I’m learning about Collections, Repositories and DTO, and I’m still trying to figure out what’s the best way to query a table to fetch data. I also found that we can use MagentoFrameworkAppResourceConnection for direct SQL queries. My question is: Which way should I use for future projects, since my […]
Every day we get 100 if not 1000’s of main.CRITICAL: Front controller reached 100 router match iterations error in our log. var/report is full of logs. Yesterday we had 280 logs in /report. in var/report we get: {"0":"Front controller reached 100 router match iterations","1":"#1 If I understand this correctly “1” […]
My clients are able to quote items within a period of 30 days. I can see the expiration date on the screen below. How could I change it?
i need to remove (not displaying:none or similar) title and category description from category catalog pages different from first page. I mean, when i click on pages on pagination selector, i want category and title description only on the first page.
{“error”:{“root_cause”:[{“type”:”rejected_execution_exception”,”reason”:”rejected execution of coordinating operation [coordinating_and_primary_bytes=87418457, replica_bytes=0, all_bytes=87418457, coordinating_operation_bytes=18166365, max_coordinating_and_primary_bytes=103795916]”}],”type”:”rejected_execution_exception”,”reason”:”rejected execution of coordinating operation [coordinating_and_primary_bytes=87418457, replica_bytes=0, all_bytes=87418457, coordinating_operation_bytes=18166365, max_coordinating_and_primary_bytes=103795916]”},”status”:429} PHP Fatal error: Uncaught ElasticsearchCommonExceptionsBadRequest400Exception: {“error”:{“root_cause”:[{“type”:”rejected_execution_exception”,”reason”:”rejected execution of coordinating operation [coordinating_and_primary_bytes=87418457, replica_bytes=0, all_bytes=87418457, coordinating_operation_bytes=18166365, max_coordinating_and_primary_bytes=103795916]”}],”type”:”rejected_execution_exception”,”reason”:”rejected execution of coordinating operation [coordinating_and_primary_bytes=87418457, replica_bytes=0, all_bytes=87418457, coordinating_operation_bytes=18166365, max_coordinating_and_primary_bytes=103795916]”},”status”:429} in /app/Module/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:693 Stack trace: #0 /app/Module/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(333): ElasticsearchConnectionsConnection->process4xxError(Array, […]