Skip to content

magento2.3

Auto Added by WPeMatico

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

API searchCriteria FROM and TO for “created_at” not fatching the right 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 FROM and TO for “created_at” not fatching the right results

I can select specific columns to update using the `updateFromSelect` function for mass updates?

I try to massivle update a specific column from 1 table to another using the updateFromSelect function: $table = ‘mytable’; /** * @var $resource MagentoFrameworkDBAdapterPdoMysqlInterceptor */ $select = $resource->select() ->join($table,$table.’.email=customer_entity.email’) ->where($table.”.valid”,true) ->where($table.”.customer_group_id<>customer_entity.group_id”) ->columns([$table.’.customer_group_id as group_id’]); $sql=$resource->updateFromSelect($select,’customer_entity’); But the $sql value… Read More »I can select specific columns to update using the `updateFromSelect` function for mass updates?

The nonce is already used by the consumer with ID

After Oauth handshake completes and the 4 Oauth values are generated I test an API call like this one: curl –location ‘https://[server name]/index.php/rest/V1/categories’ –header ‘Authorization: OAuth oauth_consumer_key=”cxxxx”,oauth_token=”xxxx”,oauth_signature_method=”HMAC-SHA256″,oauth_timestamp=”1695063776″,oauth_nonce=”ibgFTWU7PrC”,oauth_version=”1.0″,oauth_signature=”L37dcwgYkiVRq6dBmZws6xMtm100KSTytXTb0OA5LqY%3D”‘ –header ‘Cookie: PHPSESSID=g0obvg0d093llskg743pqmvebf’ and response I get is: { “message”: “The nonce is… Read More »The nonce is already used by the consumer with ID

How to disable/remove salable quantity in Magento 2

Please disable this module in app/etc/config.php file. ‘Magento_Inventory’ => 0 ‘Magento_InventoryAdminUi’ => 0 ‘Magento_InventoryApi’ => 0, ‘Magento_InventoryBundleProduct’ => 0, ‘Magento_InventoryBundleProductAdminUi’ => 0, ‘Magento_InventoryCatalog’ => 0, ‘Magento_InventorySales’ => 0, ‘Magento_InventoryCatalogAdminUi’ => 0, ‘Magento_InventoryCatalogApi’ => 0, ‘Magento_InventoryCatalogSearch’ => 0, ‘Magento_InventoryConfigurableProduct’ => 0,… Read More »How to disable/remove salable quantity in Magento 2

I Want to validate condition rule on category page products in magento 2

here is my Code public function checkCondition() { // $PrId = $this->_registry->registry(‘current_product’); // $prdId = $PrId->getId(); $categoryId = $this->getRequest()->getParam(‘id’); $ruleColl = $this->customConditionModel->create()->getCollection(); foreach ($ruleColl as $ruleKey => $ruleVal) { $prdData = $this->categoryFactory->create()->load($categoryId); $Data[] = $ruleVal->getConditions()->getName(); } $data = isset($Data); if($Data… Read More »I Want to validate condition rule on category page products in magento 2