Skip to content

API searchCriteria not working with “FROM and TO” for “created_at” field, fetching the wrong results

Im trying to get data for orders that created between 2 dates(2023-10-05 – 2023-10-01). Im using the search condition type FROM and TO but its not fetching the right details. This is what im trying: rest/default/V1/orders? searchCriteria[filterGroups][0][filters][0][field]=created_at& searchCriteria[filterGroups][0][filters][0][value]=2023-10-01& searchCriteria[filterGroups][0][filters][0][conditionType]=from& searchCriteria[filterGroups][0][filters][1][field]=created_at&… Read More »API searchCriteria not working with “FROM and TO” for “created_at” field, fetching the wrong results

Magento 2 Plugin not working for class MagentoQuoteModelCartDataCartItemFactory

Does anyone know how to create a plugin for the class MagentoQuoteModelCartDataCartItemFactory method public function create(array $data): CartItem? I have tried creating before, after, and around plugins but didn’t work. below is the reference code: di.xml: <type name=”MagentoQuoteModelCartDataCartItemFactory”> <plugin name=”custom_store_qty”… Read More »Magento 2 Plugin not working for class MagentoQuoteModelCartDataCartItemFactory

Magento 2.4.5 upgrade error: Could not find a magento/project package matching “magento/magento-cloud-metapackage 2.4.5”

While upgrading Magento Enterprise version from 2.4.5-p4 to 2.4.5-p5, i get the following error on running composer require-commerce magento/product-enterprise-edition=2.4.5-p5 –no-update –force-root-updates Could not find a magento/project package matching “magento/magento-cloud-metapackage 2.4.5” FYI : I already ran the command composer require magento/composer-root-update-plugin:’*’… Read More »Magento 2.4.5 upgrade error: Could not find a magento/project package matching “magento/magento-cloud-metapackage 2.4.5”

Magento2 inventory_cleanup_reservations CRON job not working as expected for the large number of reservation records

The basic reason behind this is the MySQL group_concat_max_len value. If we have a large number of records in the reservation table then it fails to group concat the value. Preconditions and environment Magento 2.4.4 (enterprise) Actually for any version Steps to reproduce Three… Read More »Magento2 inventory_cleanup_reservations CRON job not working as expected for the large number of reservation records