We have some NAS devices currently exposed to employees via CIFS (active directory backend for user perms/groups). We are developing a Slurm cluster for processing access-restricted data. Up until now, processing was either done on local machines (with user/pass auth’d mount.cifs volumes) or data that didn’t need controls, so we […]
Blog
Is it possible to have a random sort when searching with repositories? Checked dev docs and unsure. Not found much elsewhere. https://devdocs.magento.com/guides/v2.3/extension-dev-guide/searching-with-repositories.html#sorting use MagentoFrameworkApiFilterBuilder; use MagentoFrameworkApiSearchCriteriaBuilder; use MagentoFrameworkApiSortOrder; use MagentoFrameworkApiSortOrderFactory; $this->searchCriteriaBuilder->addFilter(MessageInterface::STATUS, [Data::ENABLED], 'eq'); $randomSort = $this->sortOrderFactory ->create() ->setField(MessageInterface::SORT) ->setDirection(SortOrder::SORT_ASC); // random sort here $this->searchCriteriaBuilder->setSortOrders([$randomSort]); $searchCriteria = $this->searchCriteriaBuilder->create(); return $this->messageRepositoryInterface->getList($searchCriteria)->getItems();
I want to show my products out of stock. I have assigned a source in my products when product quantity is negative but it shows In stock. You can check the screenshot then you will get my query.
As I don’t have implemented admin theme I have to override /vendor/magento/module-payment/view/adminhtml/templates/info/default.phtml file in my custom module. how can I write my layout file to call this file? I have copied default.html in my custom module